mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-21 16:19:21 +00:00
14 lines
178 B
Python
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'
|
|
|