Fix some Python set comprehension bugs

This commit is contained in:
rocky
2016-07-11 18:22:05 -04:00
parent c10b9babbe
commit 8e0413273b
6 changed files with 21 additions and 9 deletions

View File

@@ -9,5 +9,5 @@ for path in sys.argv[1:]:
cfile = "bytecode_%s/%s" % (version, short) + 'c'
print("byte-compiling %s to %s" % (path, cfile))
py_compile.compile(path, cfile)
if sys.version >= (2, 6, 0):
if isinstance(version, str) or version >= (2, 6, 0):
os.system("../bin/uncompyle6 -a -t %s" % cfile)