summaryrefslogtreecommitdiffstats
path: root/Demo/scripts
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-08-30 18:18:27 (GMT)
committerCollin Winter <collinw@gmail.com>2007-08-30 18:18:27 (GMT)
commit4902e69e40b7f73bbb5e02a64260a8cf03651c80 (patch)
tree12a2c1b76a83be906e764c5d36e3055232ef70da /Demo/scripts
parent6cd2a2036db68874bdf66502f38f33c1824c9e65 (diff)
downloadcpython-4902e69e40b7f73bbb5e02a64260a8cf03651c80.zip
cpython-4902e69e40b7f73bbb5e02a64260a8cf03651c80.tar.gz
cpython-4902e69e40b7f73bbb5e02a64260a8cf03651c80.tar.bz2
More raise statement normalization.
Diffstat (limited to 'Demo/scripts')
-rw-r--r--Demo/scripts/toaiff.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Demo/scripts/toaiff.py b/Demo/scripts/toaiff.py
index 438d225..5794859 100644
--- a/Demo/scripts/toaiff.py
+++ b/Demo/scripts/toaiff.py
@@ -80,7 +80,7 @@ def _toaiff(filename, temps):
temps.append(fname)
sts = uncompress.copy(filename, fname)
if sts:
- raise error, filename + ': uncompress failed'
+ raise error(filename + ': uncompress failed')
else:
fname = filename
try:
@@ -93,15 +93,15 @@ def _toaiff(filename, temps):
msg = msg[1]
if type(msg) != type(''):
msg = repr(msg)
- raise error, filename + ': ' + msg
+ raise error(filename + ': ' + msg)
if ftype == 'aiff':
return fname
if ftype is None or not ftype in table:
- raise error, '%s: unsupported audio file type %r' % (filename, ftype)
+ raise error('%s: unsupported audio file type %r' % (filename, ftype))
(fd, temp) = tempfile.mkstemp()
os.close(fd)
temps.append(temp)
sts = table[ftype].copy(fname, temp)
if sts:
- raise error, filename + ': conversion to aiff failed'
+ raise error(filename + ': conversion to aiff failed')
return temp