You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
2.5/2.6 fn name clash
fixes list conprehension problem
This commit is contained in:
BIN
test/bytecode_2.5/05_list_comprehension.pyc
Normal file
BIN
test/bytecode_2.5/05_list_comprehension.pyc
Normal file
Binary file not shown.
@@ -12,7 +12,7 @@ class Python25Parser(Python26Parser):
|
|||||||
super(Python25Parser, self).__init__(debug_parser)
|
super(Python25Parser, self).__init__(debug_parser)
|
||||||
self.customized = {}
|
self.customized = {}
|
||||||
|
|
||||||
def p_misc(self, args):
|
def p_misc25(self, args):
|
||||||
'''
|
'''
|
||||||
|
|
||||||
# If "return_if_stmt" is in a loop, a JUMP_BACK can be emitted. In 2.6 the
|
# If "return_if_stmt" is in a loop, a JUMP_BACK can be emitted. In 2.6 the
|
||||||
|
@@ -208,7 +208,7 @@ class Python26Parser(Python2Parser):
|
|||||||
except_suite ::= c_stmts_opt jmp_abs come_from_pop
|
except_suite ::= c_stmts_opt jmp_abs come_from_pop
|
||||||
'''
|
'''
|
||||||
|
|
||||||
def p_misc(self, args):
|
def p_misc26(self, args):
|
||||||
'''
|
'''
|
||||||
conditional ::= expr jmp_false expr jf_cf_pop expr come_from_opt
|
conditional ::= expr jmp_false expr jf_cf_pop expr come_from_opt
|
||||||
and ::= expr JUMP_IF_FALSE POP_TOP expr JUMP_IF_FALSE POP_TOP
|
and ::= expr JUMP_IF_FALSE POP_TOP expr JUMP_IF_FALSE POP_TOP
|
||||||
|
Reference in New Issue
Block a user