You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Remove accidental schmutz. Try using pattr on 3.4 to get fn names
This commit is contained in:
@@ -404,12 +404,8 @@ class Python3Parser(PythonParser):
|
|||||||
testfalse ::= expr jmp_false
|
testfalse ::= expr jmp_false
|
||||||
testtrue ::= expr jmp_true
|
testtrue ::= expr jmp_true
|
||||||
|
|
||||||
come_froms :: = COME_FROM COME_FROM
|
|
||||||
come_froms :: = COME_FROM
|
|
||||||
|
|
||||||
|
|
||||||
_ifstmts_jump ::= return_if_stmts
|
_ifstmts_jump ::= return_if_stmts
|
||||||
o _ifstmts_jump ::= c_stmts_opt JUMP_FORWARD _come_from _come_from
|
_ifstmts_jump ::= c_stmts_opt JUMP_FORWARD _come_from _come_from
|
||||||
|
|
||||||
iflaststmt ::= testexpr c_stmts_opt JUMP_ABSOLUTE
|
iflaststmt ::= testexpr c_stmts_opt JUMP_ABSOLUTE
|
||||||
|
|
||||||
|
@@ -925,10 +925,7 @@ class SourceWalker(GenericASTTraversal, object):
|
|||||||
# LOAD_CONST code object ..
|
# LOAD_CONST code object ..
|
||||||
# LOAD_CONST 'x0'
|
# LOAD_CONST 'x0'
|
||||||
# MAKE_FUNCTION ..
|
# MAKE_FUNCTION ..
|
||||||
if self.version >= 3.4:
|
if self.version >= 3.3:
|
||||||
func_name = node[-2].attr
|
|
||||||
code_index = -3
|
|
||||||
elif self.version == 3.3:
|
|
||||||
func_name = node[-2].pattr
|
func_name = node[-2].pattr
|
||||||
code_index = -3
|
code_index = -3
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user