Skip to content

Commit 30ae3d8

Browse files
committed
compat: fix Py2.4 SyntaxError
1 parent f2e35be commit 30ae3d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mitogen/compat/pkgutil.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,8 @@ def extend_path(path, name):
542542
if os.path.isfile(pkgfile):
543543
try:
544544
f = open(pkgfile)
545-
except IOError as msg:
545+
except IOError:
546+
msg = sys.exc_info()[1]
546547
sys.stderr.write("Can't open %s: %s\n" %
547548
(pkgfile, msg))
548549
else:

0 commit comments

Comments
 (0)