mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-03 10:43:26 +08:00
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
|
||||
|
||||
|
||||
@memoize_default(evaluator_is_first_arg=True)
|
||||
@memoize_default(evaluator_is_first_arg=True, default=[])
|
||||
def sys_path_with_modifications(evaluator, module):
|
||||
if module.path is None:
|
||||
# Support for modules without a path is bad, therefore return the
|
||||
|
||||
Reference in New Issue
Block a user