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

View File

@@ -39,7 +39,7 @@ class ImplicitNamespaceContext(Context):
@property
@evaluator_method_cache()
def name(self):
string_name = self.py__package__().rpartition('.')[-1]
string_name = self.py__package__()[-1]
return ImplicitNSName(self, string_name)
def py__file__(self):
@@ -48,7 +48,7 @@ class ImplicitNamespaceContext(Context):
def py__package__(self):
"""Return the fullname
"""
return self._fullname
return self._fullname.split('.')
def py__path__(self):
return self._paths