diff options
author | cpopa <devnull@localhost> | 2013-08-02 12:32:47 +0300 |
---|---|---|
committer | cpopa <devnull@localhost> | 2013-08-02 12:32:47 +0300 |
commit | 223ecc8e017662c60b6e5fed1f7cec4893a89cd3 (patch) | |
tree | 19496cc08884dc625a1fb806fb91b3fe0c7caa8a /test/input/func_exec_used_py30.py | |
parent | f1b0ea4a88aeaa100865a056f9321c9646565bb9 (diff) | |
parent | 1f5d694f0af58af8c5a6032dc4d57b08653500d5 (diff) | |
download | pylint-exec.tar.gz |
merge with Pylint defaultexec
Diffstat (limited to 'test/input/func_exec_used_py30.py')
-rw-r--r-- | test/input/func_exec_used_py30.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/input/func_exec_used_py30.py b/test/input/func_exec_used_py30.py new file mode 100644 index 0000000..dbcc024 --- /dev/null +++ b/test/input/func_exec_used_py30.py @@ -0,0 +1,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') + |