imports cleanup & documentation

This commit is contained in:
Dave Halter committed 2014-05-12 11:15:17 +02:00
1 parent 02d1e1aa42
commit e5fe726862
4 files changed
+15 -8

No files matched your search

+1 -1
View File
@@ -591,7 +591,7 @@ class Script(object):
for stmt in statements:
if isinstance(stmt, pr.Import):
imps = imports.ImportWrapper(self._evaluator, stmt,
direct_resolve=True).follow()
nested_resolve=True).follow()
if stmt.is_nested() and any(not isinstance(i, pr.Module) for i in imps):
analysis.add(self._evaluator, 'import-error', stmt)
else: