Fix dictionary iteration methods

This commit is contained in:
JoeLametta
2018-05-02 08:40:00 +00:00
parent b6ac79f01e
commit a484815106
6 changed files with 15 additions and 15 deletions

View File

@@ -74,7 +74,7 @@ retrieves and display accuraterip data from the given URL
# now sort track results in checksum by highest confidence
sortedChecksums = []
for checksum, entries in checksums.items():
for checksum, entries in list(checksums.items()):
highest = max(d['confidence'] for d in entries)
sortedChecksums.append((highest, checksum))

View File

@@ -222,7 +222,7 @@ Log files will log the path to tracks relative to this directory.
# Requires opts.device
def add_arguments(self):
loggers = result.getLoggers().keys()
loggers = list(result.getLoggers())
default_offset = None
info = drive.getDeviceInfo(self.opts.device)
if info: