forked from VimPlug/jedi
Fix a potential issue in sys path searching. However not tested. This is something that raised an error with sith that was not reproducible.
This commit is contained in:
@@ -131,7 +131,7 @@ def _check_module(evaluator, module):
|
|||||||
return sys_path
|
return sys_path
|
||||||
|
|
||||||
|
|
||||||
@memoize_default(evaluator_is_first_arg=True)
|
@memoize_default(evaluator_is_first_arg=True, default=[])
|
||||||
def sys_path_with_modifications(evaluator, module):
|
def sys_path_with_modifications(evaluator, module):
|
||||||
if module.path is None:
|
if module.path is None:
|
||||||
# Support for modules without a path is bad, therefore return the
|
# Support for modules without a path is bad, therefore return the
|
||||||
|
|||||||
Reference in New Issue
Block a user