Allow Python 3.0 and fix default param bug in 3.0

This commit is contained in:
rocky
2018-06-11 11:33:50 -04:00
parent e7b62a722f
commit e3d918df3d
4 changed files with 11 additions and 9 deletions

View File

@@ -69,12 +69,12 @@ def usage():
def main_bin():
if not (sys.version_info[0:2] in ((2, 6), (2, 7),
if not (sys.version_info[0:2] in ((2, 6), (2, 7), (3, 0),
(3, 1), (3, 2), (3, 3),
(3, 4), (3, 5), (3, 6),
(3, 7)
)):
print('Error: %s requires Python 2.6-2.7, or 3.1-3.7' % program,
print('Error: %s requires Python 2.6-3.7' % program,
file=sys.stderr)
sys.exit(-1)