Various stylistic fixes
- Fix PEP8's line too long warning - Remove useless parentheses - Use triple quotes for docstring - Address pylint's 'inconsistent-return-statements' - Specify string format arguments as logging function parameters - Comment out already disabled block of code - Remove useless else (after return) - Remove useless statement - Do not import already imported module
This commit is contained in:
@@ -125,8 +125,8 @@ class ReadTOCTask(task.Task):
|
||||
self._buffer = ""
|
||||
for line in lines:
|
||||
self._parser.parse(line)
|
||||
if (self._parser.currentTrack is not 0 and
|
||||
self._parser.tracks is not 0):
|
||||
if (self._parser.currentTrack != 0 and
|
||||
self._parser.tracks != 0):
|
||||
progress = (float('%d' % self._parser.currentTrack) /
|
||||
float(self._parser.tracks))
|
||||
if progress < 1.0:
|
||||
|
||||
Reference in New Issue
Block a user