1
0
forked from VimPlug/jedi

Rewrite py__package__ to return a list

This commit is contained in:
Dave Halter
2019-03-18 10:01:18 +01:00
parent e2fea0a5de
commit 234f3d93cd
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -247,7 +247,7 @@ class Importer(object):
self._fixed_sys_path = None
self._inference_possible = True
if level:
base = module_context.py__package__().split('.')
base = module_context.py__package__()
if base == [''] or base == ['__main__']:
base = []
# We need to care for two cases, the first one is if it's a valid