1
0
forked from VimPlug/jedi

make source_path in script optional, fixes #32

This commit is contained in:
David Halter
2012-10-20 13:45:15 +02:00
parent 95481be64c
commit bb76792ea8
6 changed files with 16 additions and 9 deletions

View File

@@ -50,7 +50,8 @@ class CachedModule(object):
self._parser = parsing.PyFuzzyParser(source, self.path or self.name)
p_time = None if not self.path else os.path.getmtime(self.path)
self.cache[self.path or self.name] = p_time, self._parser
if self.path or self.name:
self.cache[self.path or self.name] = p_time, self._parser
class Parser(CachedModule):