tptimer/env/lib/python2.7/site-packages/pylint/test/functional/eval_used.py

11 lines
252 B
Python

"""test for eval usage"""
eval('os.listdir(".")') # [eval-used]
eval('os.listdir(".")', globals={}) # [eval-used]
eval('os.listdir(".")', globals=globals()) # [eval-used]
def func():
""" eval in local scope"""
eval('b = 1') # [eval-used]