From d318d3c855ecad63d9053f9e68a5970cb4587565 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 26 Feb 2015 13:56:28 +0100 Subject: [PATCH] Fix a potential issue in sys path searching. However not tested. This is something that raised an error with sith that was not reproducible. --- jedi/evaluate/sys_path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/evaluate/sys_path.py b/jedi/evaluate/sys_path.py index 731a5bab..ed376d74 100644 --- a/jedi/evaluate/sys_path.py +++ b/jedi/evaluate/sys_path.py @@ -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