You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Python 3.x class bug using subclass fns
This commit is contained in:
@@ -400,9 +400,11 @@ class Python3Parser(PythonParser):
|
||||
call_function))
|
||||
self.add_unique_rule(rule, opname, token.attr, customize)
|
||||
|
||||
# Can the above build_class rule be folded into this rule?
|
||||
# FIXME: What's the deal with the two rules? Different Python versions?
|
||||
# Different situations? Note that the above rule is based on the CALL_FUNCTION
|
||||
# token found, while this one doesn't.
|
||||
rule = ("build_class ::= LOAD_BUILD_CLASS mkfunc expr call_function "
|
||||
"CALL_FUNCTION_" + str(args_pos+1))
|
||||
"CALL_FUNCTION_3")
|
||||
self.add_unique_rule(rule, opname, token.attr, customize)
|
||||
return
|
||||
|
||||
|
Reference in New Issue
Block a user