diff options
Diffstat (limited to 'Lib/toaiff.py')
-rw-r--r-- | Lib/toaiff.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/toaiff.py b/Lib/toaiff.py index 51752f4..3c8a02b 100644 --- a/Lib/toaiff.py +++ b/Lib/toaiff.py @@ -92,13 +92,12 @@ def _toaiff(filename, temps): type(msg[0]) == type(0) and type(msg[1]) == type(''): msg = msg[1] if type(msg) != type(''): - msg = `msg` + msg = repr(msg) raise error, filename + ': ' + msg if ftype == 'aiff': return fname if ftype is None or not ftype in table: - raise error, \ - filename + ': unsupported audio file type ' + `ftype` + raise error, '%s: unsupported audio file type %r' % (filename, ftype) (fd, temp) = tempfile.mkstemp() os.close(fd) temps.append(temp) |