mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2024-11-23 05:00:07 +00:00
9b5d953614
use xdis.PYTHON3 not uncompyle.PYTHON3
19 lines
393 B
Python
19 lines
393 B
Python
# globals.py -- test for global symbols
|
|
#
|
|
# This simple program is part of the decompyle test suite.
|
|
#
|
|
# decompyle is a Python byte-code decompiler
|
|
# See http://www.goebel-consult.de/decompyle/ for download and
|
|
# for further information
|
|
|
|
def f():
|
|
print x # would result in a 'NameError' or 'UnboundLocalError'
|
|
x = x+1
|
|
print x
|
|
|
|
raise "This program can't be run"
|
|
|
|
x = 1
|
|
f()
|
|
print x
|