Bugs in Python 2.6- "and" and "lambda" handling ..

and clean up verify output
This commit is contained in:
rocky
2016-12-28 04:54:11 -05:00
parent 6c546fe6e1
commit a92e6c9688
5 changed files with 30 additions and 9 deletions

View File

@@ -407,7 +407,8 @@ def compare_code_with_srcfile(pyc_filename, src_filename, weak_verify=False):
try:
code_obj2 = load_file(src_filename)
except SyntaxError as e:
return str(e)
# src_filename can be the first of a group sometimes
return str(e).replace(src_filename, pyc_filename)
cmp_code_objects(version, is_pypy, code_obj1, code_obj2, ignore_code=weak_verify)
return None