You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
2.3 while1stmt bug
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
from spark_parser import DEFAULT_DEBUG as PARSER_DEFAULT_DEBUG
|
from spark_parser import DEFAULT_DEBUG as PARSER_DEFAULT_DEBUG
|
||||||
from uncompyle6.parser import PythonParserSingle
|
from uncompyle6.parser import PythonParserSingle
|
||||||
from uncompyle6.parsers.parse2 import Python2Parser
|
from uncompyle6.parsers.parse24 import Python24Parser
|
||||||
|
|
||||||
class Python23Parser(Python24Parser):
|
class Python23Parser(Python24Parser):
|
||||||
|
|
||||||
@@ -12,6 +12,13 @@ class Python23Parser(Python24Parser):
|
|||||||
super(Python24Parser, self).__init__(debug_parser)
|
super(Python24Parser, self).__init__(debug_parser)
|
||||||
self.customized = {}
|
self.customized = {}
|
||||||
|
|
||||||
|
def p_misc23(self, args):
|
||||||
|
'''
|
||||||
|
_while1test ::= JUMP_FORWARD JUMP_IF_FALSE POP_TOP COME_FROM
|
||||||
|
|
||||||
|
while1stmt ::= SETUP_LOOP _while1test l_stmts JUMP_BACK COME_FROM POP_TOP POP_BLOCK COME_FROM
|
||||||
|
'''
|
||||||
|
|
||||||
class Python23ParserSingle(Python23Parser, PythonParserSingle):
|
class Python23ParserSingle(Python23Parser, PythonParserSingle):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user