1
0
forked from VimPlug/jedi

lots of small bugfixes

This commit is contained in:
Dave Halter
2014-01-12 02:15:59 +01:00
parent b93c761db6
commit 0bff729294
5 changed files with 14 additions and 10 deletions
-2
View File
@@ -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: