1
0
forked from VimPlug/jedi

CompiledObject.type resembles now the Node.type values.

This commit is contained in:
Dave Halter
2015-01-09 01:33:59 +01:00
parent b75ba1e16c
commit 26ecb16e5f
5 changed files with 19 additions and 9 deletions
+1 -2
View File
@@ -432,8 +432,7 @@ class _Importer(object):
for scope in self.follow(evaluator):
# Non-modules are not completable.
if not isinstance(scope, er.ModuleWrapper) and not (isinstance(scope,
compiled.CompiledObject) and scope.type() == 'module'):
if not scope.type == 'file_input': # not a module
continue
# namespace packages