Files
python-uncompyle6/test/simple-uncompyle-code-test.py
rocky 2dc8375ed0 Supoer multiple parsers, specifically for Python2 and Python3. In the
process some OO cleanup and some global variable hacks removed.
2015-12-16 22:08:29 -05:00

18 lines
318 B
Python
Executable File

#!/usr/bin/env python
from __future__ import print_function
from uncompyle6 import uncompyle
import sys, inspect
def uncompyle_test():
frame = inspect.currentframe()
try:
co = frame.f_code
uncompyle(2.7, co, sys.stdout, 1, 1)
print()
finally:
del frame
uncompyle_test()