You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Note that CALL_METHOD is used in 3.7+
and not just Pypy anymore
This commit is contained in:
@@ -825,7 +825,7 @@ class Python3Parser(PythonParser):
|
||||
# Note: don't add to custom_ops_processed.
|
||||
|
||||
elif opname_base == "CALL_METHOD":
|
||||
# PyPy only - DRY with parse2
|
||||
# PyPy and Python 3.7+ only - DRY with parse2
|
||||
|
||||
args_pos, args_kw = self.get_pos_kw(token)
|
||||
|
||||
|
@@ -2123,7 +2123,7 @@ class SourceWalker(GenericASTTraversal, object):
|
||||
op = k[: k.rfind("_")]
|
||||
|
||||
if k.startswith("CALL_METHOD"):
|
||||
# This happens in PyPy only
|
||||
# This happens in PyPy and Python 3.7+
|
||||
TABLE_R[k] = ("%c(%P)", 0, (1, -1, ", ", 100))
|
||||
elif self.version >= 3.6 and k.startswith("CALL_FUNCTION_KW"):
|
||||
TABLE_R[k] = ("%c(%P)", 0, (1, -1, ", ", 100))
|
||||
|
Reference in New Issue
Block a user