forked from VimPlug/jedi
lots of small bugfixes
This commit is contained in:
@@ -452,8 +452,6 @@ def filter_private_variable(scope, call_scope, var_name):
|
||||
if isinstance(var_name, (str, unicode)) and isinstance(scope, er.Instance)\
|
||||
and var_name.startswith('__') and not var_name.endswith('__'):
|
||||
s = call_scope.get_parent_until((pr.Class, er.Instance, compiled.PyObject))
|
||||
#if s != scope and (isinstance(scope.base, compiled.PyObject)
|
||||
# or s != scope.base.base):
|
||||
if s != scope:
|
||||
if isinstance(scope.base, compiled.PyObject):
|
||||
if s != scope.base:
|
||||
|
||||
@@ -126,6 +126,9 @@ class PyName(object):
|
||||
self.name = name
|
||||
self.start_pos = 0, 0 # an illegal start_pos, to make sorting easy.
|
||||
|
||||
def get_parent_until(self):
|
||||
return self.parent.get_parent_until()
|
||||
|
||||
def __repr__(self):
|
||||
return '<%s: (%s).%s>' % (type(self).__name__, repr(self._obj.obj), self.name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user