third_party.pylibs.pylint.src/test/input/func_w0122_py_30.py

14 lines
178 B
Python

"""test global statement"""
__revision__ = 0
exec 'a = __revision__'
exec 'a = 1' in {}
exec 'a = 1' in globals()
def func():
"""exec in local scope"""
exec 'b = 1'