summaryrefslogtreecommitdiff
path: root/test/input/func_exec_used_py30.py
blob: dbcc0249dc4c600614b7789d181b4b91a53b7e44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""test global statement"""

__revision__ = 0

exec('a = __revision__')
exec('a = 1', globals={})

exec('a = 1', globals=globals())

def func():
    """exec in local scope"""
    exec('b = 1')