1
0
forked from VimPlug/jedi

Remove expanduser from the parser path. Not sure if that makes sense so I'd rather remove it.

This commit is contained in:
Dave Halter
2017-04-30 15:23:43 +02:00
parent e2f88db3c2
commit e0b0343a78

View File

@@ -74,9 +74,6 @@ def parse(code=None, path=None, grammar=None, error_recovery=True,
if grammar is None: if grammar is None:
grammar = load_grammar() grammar = load_grammar()
if path is not None:
path = os.path.expanduser(path)
if cache and not code and path is not None: if cache and not code and path is not None:
# In this case we do actual caching. We just try to load it. # In this case we do actual caching. We just try to load it.
module_node = load_module(grammar, path) module_node = load_module(grammar, path)