From ce7b5762f7b37bfb5fe5480c2aa1b61a603587df Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sat, 12 Sep 2009 17:23:39 +0000 Subject: [PATCH] * morituri/program/cdparanoia.py: * morituri/rip/offset.py: Another unicode fix. --- ChangeLog | 6 ++++++ morituri/program/cdparanoia.py | 4 +++- morituri/rip/offset.py | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c257737..0048ec8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-09-12 Thomas Vander Stichele + + * morituri/program/cdparanoia.py: + * morituri/rip/offset.py: + Another unicode fix. + 2009-09-12 Thomas Vander Stichele * HACKING: diff --git a/morituri/program/cdparanoia.py b/morituri/program/cdparanoia.py index c064b3b..7975309 100644 --- a/morituri/program/cdparanoia.py +++ b/morituri/program/cdparanoia.py @@ -183,7 +183,7 @@ class ReadTrackTask(task.Task): Read the given track. @param path: where to store the ripped track - @type path: str + @type path: unicode @param table: table of contents of CD @type table: L{table.Table} @param start: first frame to rip @@ -195,6 +195,8 @@ class ReadTrackTask(task.Task): @param device: the device to rip from @type device: str """ + assert type(path) is unicode, "%r is not unicode" % path + self.path = path self._table = table self._start = start diff --git a/morituri/rip/offset.py b/morituri/rip/offset.py index 2139eca..5284ea0 100644 --- a/morituri/rip/offset.py +++ b/morituri/rip/offset.py @@ -155,7 +155,7 @@ CD in the AccurateRip database.""" self.debug('Ripping track %r with offset %d ...', track, offset) fd, path = tempfile.mkstemp( - suffix='.track%02d.offset%d.morituri.wav' % ( + suffix=u'.track%02d.offset%d.morituri.wav' % ( track, offset)) os.close(fd)