1
0
forked from VimPlug/jedi

fix cache problem with unsaved files

This commit is contained in:
David Halter
2013-01-12 11:57:25 +01:00
parent d89d80733f
commit dd58afe8b2

View File

@@ -182,7 +182,12 @@ def load_module(path, name):
def save_module(path, name, parser, pickling=True):
p_time = None if not path else os.path.getmtime(path)
try:
p_time = None if not path else os.path.getmtime(path)
except OSError:
p_time = None
pickling = False
n = name if path is None else path
item = ParserCacheItem(parser, p_time)
parser_cache[n] = item