Files
deb-bandit/examples/imports-function.py
Timothy Kelsey 5180c65d26 Fixing a bug and cleaning up in blacklisting code
Closes-bug: 1536414
Change-Id: I574e8c673c7a7dd197599286ec98f106a6d94fb5
2016-01-21 15:29:21 +00:00

13 lines
352 B
Python

os = __import__("os")
pickle = __import__("pickle")
sys = __import__("sys")
subprocess = __import__("subprocess")
# this has been reported in the wild, though it's invalid python
# see bug https://bugs.launchpad.net/bandit/+bug/1396333
__import__()
# TODO(??): bandit can not find this one unfortunatly (no symbol tab)
a = 'subprocess'
__import__(a)