Files
Pyarmor-Static-Unpack-1shot/tests/tokenized/test_class_py3.txt
Michael Hansen 8eb18de269 Update tests to show that #39 is resolved, and add dummy support for
STORE_LOCALS used in Python 3.0-3.3.

Closes #39
Closes #63
2020-10-22 09:06:57 -07:00

46 lines
994 B
Plaintext

'\ntest_class.py -- source test pattern for class definitions\n\nThis source is part of the decompyle test suite.\n\ndecompyle is a Python byte-code decompiler\nSee http://www.goebel-consult.de/decompyle/ for download and\nfor further information\n' <EOL>
class A : <EOL>
<INDENT>
class A1 : <EOL>
<INDENT>
def __init__ ( self ) : <EOL>
<INDENT>
print ( 'A1.__init__' ) <EOL>
<OUTDENT>
def foo ( self ) : <EOL>
<INDENT>
print ( 'A1.foo' ) <EOL>
<OUTDENT>
<OUTDENT>
def __init__ ( self ) : <EOL>
<INDENT>
print ( 'A.__init__' ) <EOL>
<OUTDENT>
def foo ( self ) : <EOL>
<INDENT>
print ( 'A.foo' ) <EOL>
<OUTDENT>
<OUTDENT>
class B : <EOL>
<INDENT>
def __init__ ( self ) : <EOL>
<INDENT>
print ( 'B.__init__' ) <EOL>
<OUTDENT>
def bar ( self ) : <EOL>
<INDENT>
print ( 'B.bar' ) <EOL>
<OUTDENT>
<OUTDENT>
class C ( A , B ) : <EOL>
<INDENT>
def foobar ( self ) : <EOL>
<INDENT>
print ( 'C.foobar' ) <EOL>
<OUTDENT>
<OUTDENT>
c = C ( ) <EOL>
c . foo ( ) <EOL>
c . bar ( ) <EOL>
c . foobar ( ) <EOL>