Remove accidental schmutz. Try using pattr on 3.4 to get fn names

This commit is contained in:
rocky 2015-12-30 20:09:33 -05:00
parent d5b023aec4
commit 21e51004ae
2 changed files with 2 additions and 9 deletions

View File

@ -404,12 +404,8 @@ class Python3Parser(PythonParser):
testfalse ::= expr jmp_false
testtrue ::= expr jmp_true
come_froms :: = COME_FROM COME_FROM
come_froms :: = COME_FROM
_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

View File

@ -925,10 +925,7 @@ class SourceWalker(GenericASTTraversal, object):
# LOAD_CONST code object ..
# LOAD_CONST 'x0'
# MAKE_FUNCTION ..
if self.version >= 3.4:
func_name = node[-2].attr
code_index = -3
elif self.version == 3.3:
if self.version >= 3.3:
func_name = node[-2].pattr
code_index = -3
else: