Skip to content

Commit 26053e0

Browse files
committed
changed .iteritems() to items()
1 parent 2742956 commit 26053e0

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/deltacode/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,8 @@ def determine_moved(self):
195195
added = self.index_deltas('sha1', [i for i in self.deltas if i.old_file is None and i.new_file])
196196
removed = self.index_deltas('sha1', [i for i in self.deltas if i.old_file and i.new_file is None])
197197

198-
# TODO: should it be iteritems() or items()
199-
for added_sha1, added_deltas in added.iteritems():
200-
for removed_sha1, removed_deltas in removed.iteritems():
198+
for added_sha1, added_deltas in added.items():
199+
for removed_sha1, removed_deltas in removed.items():
201200

202201
# check for matching sha1s on both sides
203202
if utils.check_moved(added_sha1, added_deltas, removed_sha1, removed_deltas):

src/deltacode/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def print_version(ctx, param, value):
6969
@click.option('--version', is_flag=True, is_eager=True, expose_value=False, callback=print_version, help='Show the version and exit.')
7070
@click.option('-n', '--new', required=True, prompt=False, type=click.Path(exists=True, readable=True), help='Identify the path to the "new" scan file')
7171
@click.option('-o', '--old', required=True, prompt=False, type=click.Path(exists=True, readable=True), help='Identify the path to the "old" scan file')
72-
@click.option('-j', '--json-file', prompt=False, default='-', type=click.File(mode='wb', lazy=False), help='Identify the path to the .json output file')
72+
@click.option('-j', '--json-file', prompt=False, default='-', type=click.File(mode='w', lazy=False), help='Identify the path to the .json output file')
7373
@click.option('-a', '--all-delta-types', is_flag=True, help="Include unmodified files as well as all changed files in the .json output. If not selected, only changed files are included.")
7474
def cli(new, old, json_file, all_delta_types):
7575
"""

0 commit comments

Comments
 (0)