You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Small fixes
test_pyenvlib.py: it is sys.exit(), not exit() pysource.py: reinstate nod type of async_func_call
This commit is contained in:
@@ -169,13 +169,13 @@ def do_tests(src_dir, obj_patterns, target_dir, opts):
|
|||||||
main(src_dir, target_dir, files, [],
|
main(src_dir, target_dir, files, [],
|
||||||
do_verify=opts['do_verify'])
|
do_verify=opts['do_verify'])
|
||||||
if failed_files != 0:
|
if failed_files != 0:
|
||||||
exit(2)
|
sys.exit(2)
|
||||||
elif failed_verify != 0:
|
elif failed_verify != 0:
|
||||||
exit(3)
|
sys.exit(3)
|
||||||
|
|
||||||
except (KeyboardInterrupt, OSError):
|
except (KeyboardInterrupt, OSError):
|
||||||
print()
|
print()
|
||||||
exit(1)
|
sys.exit(1)
|
||||||
if test_opts['rmtree']:
|
if test_opts['rmtree']:
|
||||||
parent_dir = os.path.dirname(target_dir)
|
parent_dir = os.path.dirname(target_dir)
|
||||||
print("Everything good, removing %s" % parent_dir)
|
print("Everything good, removing %s" % parent_dir)
|
||||||
|
@@ -408,6 +408,7 @@ class SourceWalker(GenericASTTraversal, object):
|
|||||||
self.template_engine(('%c(%P)', 0,
|
self.template_engine(('%c(%P)', 0,
|
||||||
(1, -4, ', ', 100)), node)
|
(1, -4, ', ', 100)), node)
|
||||||
self.prec = p
|
self.prec = p
|
||||||
|
node.type == 'async_call_function'
|
||||||
self.prune()
|
self.prune()
|
||||||
self.n_async_call_function = n_async_call_function
|
self.n_async_call_function = n_async_call_function
|
||||||
self.n_build_list_unpack = self.n_build_list
|
self.n_build_list_unpack = self.n_build_list
|
||||||
|
Reference in New Issue
Block a user