Remove unneeded brackets in print statements

This commit is contained in:
JoeLametta
2018-05-08 10:00:00 +00:00
parent bd81f80afa
commit 0f67bc4a96
2 changed files with 7 additions and 7 deletions

View File

@@ -333,7 +333,7 @@ Log files will log the path to tracks relative to this directory.
sys.stdout.write("output directory %s already exists\n" %
dirname.encode('utf-8'))
else:
print(("creating output directory %s" % dirname.encode('utf-8')))
print("creating output directory %s" % dirname.encode('utf-8'))
os.makedirs(dirname)
# FIXME: turn this into a method
@@ -460,14 +460,14 @@ Log files will log the path to tracks relative to this directory.
htoa = self.program.getHTOA()
if htoa:
start, stop = htoa
print(('found Hidden Track One Audio from frame %d to %d' % (
start, stop)))
print('found Hidden Track One Audio from frame %d to %d' % (
start, stop))
_ripIfNotRipped(0)
for i, track in enumerate(self.itable.tracks):
# FIXME: rip data tracks differently
if not track.audio:
print(('skipping data track %d, not implemented' % (i + 1)))
print('skipping data track %d, not implemented' % (i + 1))
# FIXME: make it work for now
track.indexes[1].relative = 0
continue

View File

@@ -271,9 +271,9 @@ def print_report(result):
logger.error(
'no track AR CRC on non-HTOA track %d' % track.number
)
print(('track %2d: unknown (error)' % track.number))
print('track %2d: unknown (error)' % track.number)
else:
print(('track %2d: %-16s %-23s v1 [%s], v2 [%s], DB [%s]' % (
print('track %2d: %-16s %-23s v1 [%s], v2 [%s], DB [%s]' % (
track.number, status, conf,
track.AR['v1']['CRC'], track.AR['v2']['CRC'], db
)))
))