test for is_nested failure

This commit is contained in:
Dave Halter committed 2014-05-16 13:00:13 +02:00
1 parent 8e27ed556e
commit 4e596060b9
4 files changed
+14 -3

No files matched your search

+1 -1
View File
@@ -795,7 +795,7 @@ class Import(Simple):
import foo.bar
"""
return not self.alias and not self.from_ns \
return not self.alias and not self.from_ns and self.namespace is not None \
and len(self.namespace.names) > 1