You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
Merge branch 'master' into python-2.4
This commit is contained in:
17
test/simple-decompile-code-test.py
Executable file
17
test/simple-decompile-code-test.py
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from uncompyle6 import uncompyle
|
||||
from uncompyle6.main import decompile
|
||||
from xdis import sysinfo2float
|
||||
import sys, inspect
|
||||
|
||||
def uncompyle_test():
|
||||
frame = inspect.currentframe()
|
||||
try:
|
||||
co = frame.f_code
|
||||
decompile(sysinfo2float(), co, sys.stdout, 1, 1)
|
||||
print()
|
||||
finally:
|
||||
del frame
|
||||
|
||||
uncompyle_test()
|
Reference in New Issue
Block a user