Files
codeql/python/ql/test/experimental/dataflow/import-helper/test1.py
2020-09-22 16:28:19 +02:00

7 lines
144 B
Python

import mypkg
print(mypkg.foo) # 42
try:
print(mypkg.bar)
except AttributeError as e:
print(e) # module 'mypkg' has no attribute 'bar'