2.x syntax

This commit is contained in:
Benjamin Peterson 2011-08-09 18:48:02 -05:00
parent 4ec450d3c7
commit 257a1d0f28
1 changed files with 1 additions and 1 deletions

View File

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