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): if os.path.isfile(pkgfile):
try: try:
f = open(pkgfile) f = open(pkgfile)
except IOError as msg: except IOError:
msg = sys.exc_info()[1]
sys.stderr.write("Can't open %s: %s\n" % sys.stderr.write("Can't open %s: %s\n" %
(pkgfile, msg)) (pkgfile, msg))
else: else:

Loading…
Cancel
Save