Allow Python 3.5 to decomplyle other versions. No Python 3.5

bytecode support just yet though.
This commit is contained in:
rocky
2015-12-30 23:46:29 -05:00
parent d3a32b6877
commit b82a8b90d5
8 changed files with 20 additions and 16 deletions

View File

@@ -42,8 +42,8 @@ PYTHON_VERSION_STR = "%s.%s" % (sys.version_info[0], sys.version_info[1])
sys.setrecursionlimit(5000)
def check_python_version(program):
if not (sys.version_info[0:2] in ((2, 6), (2, 7), (3, 2), (3, 3), (3, 4))):
print('Error: %s requires Python 2.6, 2.7, 3.2, 3.3, or 3.4' % program,
if not (sys.version_info[0:2] in ((2, 6), (2, 7), (3, 2), (3, 3), (3, 4), (3, 5))):
print('Error: %s requires Python 2.6, 2.7, 3.2, 3.3, 3.4 or 3.5' % program,
file=sys.stderr)
sys.exit(-1)
return