Bug in 2.4 "if" dectection and...

Wrong language used in old-style exceptions: use "except Error,e" not
"except Error(e)""
This commit is contained in:
rocky
2016-11-24 05:15:35 -05:00
parent 316aa44f23
commit 460069ceaa
7 changed files with 16 additions and 12 deletions

View File

@@ -398,7 +398,7 @@ def compare_code_with_srcfile(pyc_filename, src_filename, weak_verify=False):
return msg
try:
code_obj2 = load_file(src_filename)
except SyntaxError(e):
except SyntaxError, e:
return str(e)
cmp_code_objects(version, is_pypy, code_obj1, code_obj2, ignore_code=weak_verify)
return None