summaryrefslogtreecommitdiffstats
path: root/Lib/sunaudio.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-08-30 01:19:48 (GMT)
committerCollin Winter <collinw@gmail.com>2007-08-30 01:19:48 (GMT)
commitce36ad8a467d914eb5c91f33835b9eaea18ee93b (patch)
tree05bf654f3359e20b455dc300bd860bba5d291c8d /Lib/sunaudio.py
parent8b3febef2f96c35e9aad9db2ef499db040fdefae (diff)
downloadcpython-ce36ad8a467d914eb5c91f33835b9eaea18ee93b.zip
cpython-ce36ad8a467d914eb5c91f33835b9eaea18ee93b.tar.gz
cpython-ce36ad8a467d914eb5c91f33835b9eaea18ee93b.tar.bz2
Raise statement normalization in Lib/.
Diffstat (limited to 'Lib/sunaudio.py')
-rw-r--r--Lib/sunaudio.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/sunaudio.py b/Lib/sunaudio.py
index ab4a8fa..6c1bba1 100644
--- a/Lib/sunaudio.py
+++ b/Lib/sunaudio.py
@@ -14,7 +14,7 @@ def get_long_be(s):
def gethdr(fp):
"""Read a sound header from an open file."""
if fp.read(4) != MAGIC:
- raise error, 'gethdr: bad magic word'
+ raise error('gethdr: bad magic word')
hdr_size = get_long_be(fp.read(4))
data_size = get_long_be(fp.read(4))
encoding = get_long_be(fp.read(4))
@@ -22,7 +22,7 @@ def gethdr(fp):
channels = get_long_be(fp.read(4))
excess = hdr_size - 24
if excess < 0:
- raise error, 'gethdr: bad hdr_size'
+ raise error('gethdr: bad hdr_size')
if excess > 0:
info = fp.read(excess)
else: