compat: fix Py2.4 SyntaxError
This commit is contained in:
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…
Reference in New Issue