Fix logger statements having multiple arguments

Some of the instructions have been rendered invalid during the conversion to logger statements...

Also performed various stylistic fixes
This commit is contained in:
JoeLametta
2018-12-14 11:02:20 +00:00
parent a23b214814
commit a4f654a3f3
21 changed files with 182 additions and 214 deletions

View File

@@ -40,13 +40,12 @@ retrieves and display accuraterip data from the given URL
count = responses[0].num_tracks
logger.info("Found %d responses for %d tracks",
(len(responses), count))
logger.info("found %d responses for %d tracks", len(responses), count)
for (i, r) in enumerate(responses):
if r.num_tracks != count:
logger.warning("response %d has %d tracks instead of %d", (
i, r.num_tracks, count))
logger.warning("response %d has %d tracks instead of %d",
i, r.num_tracks, count)
# checksum and confidence by track
for track in range(count):
@@ -81,7 +80,7 @@ retrieves and display accuraterip data from the given URL
for highest, checksum in sortedChecksums:
print(" %d result(s) for checksum %s: %s" % (
len(checksums[checksum]),
checksum, str(checksums[checksum])))
checksum, checksums[checksum]))
class AccuRip(BaseCommand):