1
0
forked from VimPlug/jedi

parent_value -> parent_context

This commit is contained in:
Dave Halter
2019-08-15 09:36:46 +02:00
parent 2e90e3b2b1
commit 600272366f
25 changed files with 181 additions and 181 deletions

View File

@@ -124,7 +124,7 @@ def add_attribute_error(name_value, lookup_value, name):
for n in slot_names:
# TODO do we even get here?
if isinstance(name, CompiledInstanceName) and \
n.parent_value.obj == object:
n.parent_context.obj == object:
typ = Warning
break
@@ -149,7 +149,7 @@ def _check_for_exception_catch(node_value, jedi_name, exception, payload=None):
for python_cls in exception.mro():
if cls.py__name__() == python_cls.__name__ \
and cls.parent_value == cls.infer_state.builtins_module:
and cls.parent_context == cls.infer_state.builtins_module:
return True
return False