Skip to content

Commit

Permalink
fix minor string handling minibugs
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursiveForest committed Sep 15, 2017
1 parent d642437 commit d4aad57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion whipper/command/cd.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def _ripIfNotRipped(number):
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
Expand Down
2 changes: 1 addition & 1 deletion whipper/common/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ def verifyImage(self, runner, table):
def write_m3u(self, discname):
m3uPath = u'%s.m3u' % discname
with open(m3uPath, 'w') as f:
f.write(u'#EXTM3U\n')
f.write(u'#EXTM3U\n'.encode('utf-8'))
for track in self.result.tracks:
if not track.filename:
# false positive htoa
Expand Down

0 comments on commit d4aad57

Please sign in to comment.