Rename 'throwaway' variables to single underscore
Also removed unused ones
This commit is contained in:
@@ -236,7 +236,7 @@ def print_report(result):
|
||||
"""
|
||||
Print AccurateRip verification results.
|
||||
"""
|
||||
for i, track in enumerate(result.tracks):
|
||||
for _, track in enumerate(result.tracks):
|
||||
status = 'rip NOT accurate'
|
||||
conf = '(not found)'
|
||||
db = 'notfound'
|
||||
|
||||
@@ -47,7 +47,7 @@ class CRC32Task(etask.Task):
|
||||
|
||||
def _crc32(self):
|
||||
if not self.is_wave:
|
||||
fd, tmpf = tempfile.mkstemp()
|
||||
_, tmpf = tempfile.mkstemp()
|
||||
|
||||
try:
|
||||
subprocess.check_call(['flac', '-d', self.path, '-fo', tmpf])
|
||||
|
||||
@@ -156,7 +156,6 @@ class Config:
|
||||
section = 'drive:' + urllib.quote('%s:%s:%s' % (
|
||||
vendor, model, release))
|
||||
self._parser.add_section(section)
|
||||
__pychecker__ = 'no-local'
|
||||
for key in ['vendor', 'model', 'release']:
|
||||
self._parser.set(section, key, locals()[key].strip())
|
||||
|
||||
|
||||
@@ -66,6 +66,6 @@ def getDeviceInfo(path):
|
||||
except ImportError:
|
||||
return None
|
||||
device = cdio.Device(path)
|
||||
ok, vendor, model, release = device.get_hwinfo()
|
||||
_, vendor, model, release = device.get_hwinfo()
|
||||
|
||||
return vendor, model, release
|
||||
|
||||
@@ -259,10 +259,8 @@ class Program:
|
||||
ittoc.getAudioTracks()))
|
||||
logger.debug('MusicBrainz submit url: %r',
|
||||
ittoc.getMusicBrainzSubmitURL())
|
||||
ret = None
|
||||
|
||||
metadatas = None
|
||||
e = None
|
||||
|
||||
for _ in range(0, 4):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user