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