forked from VimPlug/jedi
make source_path in script optional, fixes #32
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user