1
0
forked from VimPlug/jedi

remove parser from modules.py

This commit is contained in:
Dave Halter
2014-01-05 12:55:28 +01:00
parent 78ac8b2fd6
commit 40c7949d20
2 changed files with 10 additions and 13 deletions

View File

@@ -72,16 +72,6 @@ class ModuleWithCursor(object):
self._line_temp = None
self._relevant_temp = None
@property
@cache.underscore_memoization
def parser(self):
""" get the parser lazy """
cache.invalidate_star_import_cache(self.path)
parser = fast.FastParser(self.source, self.path, self.position)
# Don't pickle that module, because the main module is changing quickly
cache.save_parser(self.path, self.name, parser, pickling=False)
return parser
def get_path_until_cursor(self):
""" Get the path under the cursor. """
if self._path_until_cursor is None: # small caching