
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.
8 lines
146 B
Python
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
|