summaryrefslogtreecommitdiff
path: root/Lib/plat-irix5
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/plat-irix5')
-rwxr-xr-xLib/plat-irix5/torgb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/plat-irix5/torgb.py b/Lib/plat-irix5/torgb.py
index 54c86c477d..02bcb53559 100755
--- a/Lib/plat-irix5/torgb.py
+++ b/Lib/plat-irix5/torgb.py
@@ -80,7 +80,7 @@ def _torgb(filename, temps):
fname = filename
try:
ftype = imghdr.what(fname)
- except IOError, msg:
+ except IOError as msg:
if type(msg) == type(()) and len(msg) == 2 and \
type(msg[0]) == type(0) and type(msg[1]) == type(''):
msg = msg[1]