From e0b0343a78c4b98173c4f82a0438928fbb03ae8d Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sun, 30 Apr 2017 15:23:43 +0200 Subject: [PATCH] Remove expanduser from the parser path. Not sure if that makes sense so I'd rather remove it. --- jedi/parser/python/__init__.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/jedi/parser/python/__init__.py b/jedi/parser/python/__init__.py index f4ef81de..d60531fa 100644 --- a/jedi/parser/python/__init__.py +++ b/jedi/parser/python/__init__.py @@ -74,9 +74,6 @@ def parse(code=None, path=None, grammar=None, error_recovery=True, if grammar is None: grammar = load_grammar() - if path is not None: - path = os.path.expanduser(path) - if cache and not code and path is not None: # In this case we do actual caching. We just try to load it. module_node = load_module(grammar, path)