1
0
forked from VimPlug/jedi

Issues with imports.

This commit is contained in:
Dave Halter
2014-09-24 21:12:38 +02:00
parent ff61c1d81c
commit c43afae24a
2 changed files with 5 additions and 5 deletions

View File

@@ -494,7 +494,7 @@ class SubModule(Scope, Module):
is a ``__future__`` import.
"""
for imp in self.imports:
if imp.from_names is None or imp.namespace_names is None:
if not imp.from_names or not imp.namespace_names:
continue
namespace, feature = imp.from_names[0], imp.namespace_names[0]