diff --git a/test/bytecode_2.5/05_list_comprehension.pyc b/test/bytecode_2.5/05_list_comprehension.pyc new file mode 100644 index 00000000..c1c8c39c Binary files /dev/null and b/test/bytecode_2.5/05_list_comprehension.pyc differ diff --git a/uncompyle6/parsers/parse25.py b/uncompyle6/parsers/parse25.py index 863f6805..67e16bc9 100644 --- a/uncompyle6/parsers/parse25.py +++ b/uncompyle6/parsers/parse25.py @@ -12,7 +12,7 @@ class Python25Parser(Python26Parser): super(Python25Parser, self).__init__(debug_parser) 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 diff --git a/uncompyle6/parsers/parse26.py b/uncompyle6/parsers/parse26.py index 2488d8d6..651f5872 100644 --- a/uncompyle6/parsers/parse26.py +++ b/uncompyle6/parsers/parse26.py @@ -208,7 +208,7 @@ class Python26Parser(Python2Parser): 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 and ::= expr JUMP_IF_FALSE POP_TOP expr JUMP_IF_FALSE POP_TOP