You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Less dishonest COME_FROMs
Addresses all of the problems seen in 3.7 datetime.py. However we limit COME_FROMs only to forward jumps, not back (which in the case of Python code right now means looping) jumps.
This commit is contained in:
@@ -1433,7 +1433,7 @@ class SourceWalker(GenericASTTraversal, object):
|
||||
assert node[n].kind.startswith('CALL_FUNCTION')
|
||||
|
||||
if node[n].kind.startswith('CALL_FUNCTION_KW'):
|
||||
# 3.6+ starts does this
|
||||
# 3.6+ starts doing this
|
||||
kwargs = node[n-1].attr
|
||||
assert isinstance(kwargs, tuple)
|
||||
i = n - (len(kwargs)+1)
|
||||
|
Reference in New Issue
Block a user