You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
3.2 class bug
This commit is contained in:
BIN
test/bytecode_3.2/11_classbug.pyc
Normal file
BIN
test/bytecode_3.2/11_classbug.pyc
Normal file
Binary file not shown.
3
test/simple_source/def/11_classbug.py
Normal file
3
test/simple_source/def/11_classbug.py
Normal file
@@ -0,0 +1,3 @@
|
||||
class _TemplateMetaclass(type):
|
||||
def __init__(cls, name, bases, dct):
|
||||
super(_TemplateMetaclass, cls).__init__(name, bases, dct)
|
@@ -332,6 +332,7 @@ class Python3Parser(PythonParser):
|
||||
|
||||
def p_stmt3(self, args):
|
||||
"""
|
||||
stmt ::= LOAD_CLOSURE RETURN_VALUE RETURN_LAST
|
||||
stmt ::= whileTruestmt
|
||||
ifelsestmt ::= testexpr c_stmts_opt JUMP_FORWARD else_suite _come_from
|
||||
|
||||
@@ -586,9 +587,6 @@ class Python35onParser(Python3Parser):
|
||||
withasstmt ::= expr SETUP_WITH designator suite_stmts_opt
|
||||
POP_BLOCK LOAD_CONST COME_FROM
|
||||
WITH_CLEANUP_START WITH_CLEANUP_FINISH END_FINALLY
|
||||
|
||||
# Python 3.5+ classes seem to end with this:
|
||||
stmt ::= LOAD_CLOSURE RETURN_VALUE RETURN_LAST
|
||||
"""
|
||||
|
||||
class Python35onParserSingle(Python35onParser, PythonParserSingle):
|
||||
|
Reference in New Issue
Block a user