You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Can run in Python 3.1 and Python 3.2
This commit is contained in:
@@ -20,6 +20,8 @@ classifiers = ['Development Status :: 5 - Production/Stable',
|
|||||||
'Programming Language :: Python :: 2.5',
|
'Programming Language :: Python :: 2.5',
|
||||||
'Programming Language :: Python :: 2.6',
|
'Programming Language :: Python :: 2.6',
|
||||||
'Programming Language :: Python :: 2.7',
|
'Programming Language :: Python :: 2.7',
|
||||||
|
'Programming Language :: Python :: 3.1',
|
||||||
|
'Programming Language :: Python :: 3.2',
|
||||||
'Programming Language :: Python :: 3.3',
|
'Programming Language :: Python :: 3.3',
|
||||||
'Programming Language :: Python :: 3.4',
|
'Programming Language :: Python :: 3.4',
|
||||||
'Programming Language :: Python :: 3.5',
|
'Programming Language :: Python :: 3.5',
|
||||||
|
@@ -66,9 +66,9 @@ def usage():
|
|||||||
|
|
||||||
def main_bin():
|
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, 2), (3, 3),
|
(3, 1), (3, 2), (3, 3),
|
||||||
(3, 4), (3, 5), (3, 6))):
|
(3, 4), (3, 5), (3, 6))):
|
||||||
print('Error: %s requires Python 2.6, 2.7, 3.2, 3.3, 3.4, 3.5, or 3.6' % program,
|
print('Error: %s requires Python 2.6-2.7, or 3.1-3.6' % program,
|
||||||
file=sys.stderr)
|
file=sys.stderr)
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
||||||
@@ -142,7 +142,6 @@ def main_bin():
|
|||||||
if src_base:
|
if src_base:
|
||||||
sb_len = len( os.path.join(src_base, '') )
|
sb_len = len( os.path.join(src_base, '') )
|
||||||
files = [f[sb_len:] for f in files]
|
files = [f[sb_len:] for f in files]
|
||||||
del sb_len
|
|
||||||
|
|
||||||
if not files:
|
if not files:
|
||||||
print("No files given", file=sys.stderr)
|
print("No files given", file=sys.stderr)
|
||||||
|
Reference in New Issue
Block a user