2.x syntax
This commit is contained in:
parent
4ec450d3c7
commit
257a1d0f28
|
@ -1173,7 +1173,7 @@ def main(srcfile):
|
|||
write = True
|
||||
try:
|
||||
fp = open(p, "r")
|
||||
except IOError as e:
|
||||
except IOError, e:
|
||||
if e.errno != errno.ENOENT:
|
||||
raise
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue