forked from VimPlug/jedi
A small rename of a value that is actually a context
This commit is contained in:
@@ -819,10 +819,10 @@ class EnumInstance(LazyValueWrapper):
|
|||||||
|
|
||||||
|
|
||||||
def tree_name_to_values(func):
|
def tree_name_to_values(func):
|
||||||
def wrapper(inference_state, value, tree_name):
|
def wrapper(inference_state, context, tree_name):
|
||||||
if tree_name.value == 'sep' and value.is_module() and value.py__name__() == 'os.path':
|
if tree_name.value == 'sep' and context.is_module() and context.py__name__() == 'os.path':
|
||||||
return ValueSet({
|
return ValueSet({
|
||||||
compiled.create_simple_object(inference_state, os.path.sep),
|
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
|
return wrapper
|
||||||
|
|||||||
Reference in New Issue
Block a user