1
0
forked from VimPlug/jedi

A small rename of a value that is actually a context

This commit is contained in:
Dave Halter
2019-12-01 00:31:22 +01:00
parent b895924311
commit c77f33b73b

View File

@@ -819,10 +819,10 @@ class EnumInstance(LazyValueWrapper):
def tree_name_to_values(func):
def wrapper(inference_state, value, tree_name):
if tree_name.value == 'sep' and value.is_module() and value.py__name__() == 'os.path':
def wrapper(inference_state, context, tree_name):
if tree_name.value == 'sep' and context.is_module() and context.py__name__() == 'os.path':
return ValueSet({
compiled.create_simple_object(inference_state, os.path.sep),
})
return func(inference_state, value, tree_name)
return func(inference_state, context, tree_name)
return wrapper