compat: fix Py2.4 SyntaxError

This commit is contained in:
David Wilson 2019-08-09 22:17:31 +01:00
parent f2e35be143
commit 30ae3d85cb
1 changed files with 2 additions and 1 deletions

View File

@ -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: