Merge branch 'master' of github.com:rocky/python-uncompyle6

This commit is contained in:
rocky
2016-12-09 21:13:31 -05:00
18 changed files with 134 additions and 32 deletions

View File

@@ -317,7 +317,7 @@ def cmp_code_objects(version, is_pypy, code_obj1, code_obj2,
i2 += 2
continue
elif tokens1[i1].type == 'LOAD_NAME' and tokens2[i2].type == 'LOAD_CONST' \
and tokens1[i1].pattr == 'None' and tokens2[i2].pattr == None:
and tokens1[i1].pattr == 'None' and tokens2[i2].pattr is None:
pass
else:
raise CmpErrorCode(name, tokens1[i1].offset, tokens1[i1],