Replace filter calls with list comprehensions

This commit is contained in:
JoeLametta
2018-05-02 08:15:00 +00:00
parent 4280dbfafc
commit 7dff041362
2 changed files with 4 additions and 4 deletions

View File

@@ -570,7 +570,7 @@ class Program:
checksums = accurip.calculate_checksums([
os.path.join(os.path.dirname(self.cuePath), t.indexes[1].path)
for t in filter(lambda t: t.number != 0, cueImage.cue.table.tracks)
for t in [t for t in cueImage.cue.table.tracks if t.number != 0]
])
if not (checksums and any(checksums['v1']) and any(checksums['v2'])):
return False