compat: fix Py2.4 SyntaxError

pull/618/head
David Wilson 5 years ago
parent f2e35be143
commit 30ae3d85cb

@ -542,7 +542,8 @@ def extend_path(path, name):
if os.path.isfile(pkgfile):
try:
f = open(pkgfile)
except IOError as msg:
except IOError:
msg = sys.exc_info()[1]
sys.stderr.write("Can't open %s: %s\n" %
(pkgfile, msg))
else:

Loading…
Cancel
Save