Fix dictionary iteration methods
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user