1
0
forked from VimPlug/jedi

moved using setting.fast_parser to fast_parser

This commit is contained in:
David Halter
2012-12-18 01:50:10 +01:00
parent 2a8660b989
commit 74a51c87cb
4 changed files with 6 additions and 12 deletions

View File

@@ -72,12 +72,8 @@ class ModuleWithCursor(Module):
# Call the parser already here, because it will be used anyways.
# Also, the position is here important (which will not be used by
# default), therefore fill the cache here.
if settings.fast_parser:
self._parser = fast_parser.FastParser(self.source, self.path,
self.position)
else:
self._parser = parsing.PyFuzzyParser(self.source, self.path,
self.position)
self._parser = fast_parser.FastParser(self.source, self.path,
self.position)
if self.path is not None:
builtin.CachedModule.cache[self.path] = time.time(), \
self._parser