bandit/examples/imports-from.py
Jamie Finnigan 7c94d3625e Fix relative imports and error handling
This deals with relative imports in visit_ImportFrom.  Also adds
try/except around ast.parse() call to catch any files with non-valid
source or syntax errors.
2014-07-17 11:52:33 -07:00

8 lines
146 B
Python

from subprocess import Popen
from ..foo import sys
from . import sys
from .. import sys
from .. import subprocess
from ..subprocess import Popen