1
0
forked from VimPlug/jedi

forgot to move two function calls in the last commit

This commit is contained in:
David Halter
2012-12-22 01:43:29 +01:00
parent 0d6d84402d
commit a2e05c215a
2 changed files with 2 additions and 4 deletions

View File

@@ -13,7 +13,6 @@ import common
import debug import debug
import parsing import parsing
import fast_parser import fast_parser
import imports
import evaluate import evaluate
@@ -57,7 +56,7 @@ class CachedModule(object):
# In case there is already a module cached and this module # In case there is already a module cached and this module
# has to be reparsed, we also need to invalidate the import # has to be reparsed, we also need to invalidate the import
# caches. # caches.
imports.invalidate_star_import_cache(parser.module) cache.invalidate_star_import_cache(parser.module)
raise KeyError() raise KeyError()
except KeyError: except KeyError:
self._load_module() self._load_module()

View File

@@ -14,7 +14,6 @@ import fast_parser
import builtin import builtin
import debug import debug
import settings import settings
import imports
class Module(builtin.CachedModule): class Module(builtin.CachedModule):
@@ -64,7 +63,7 @@ class ModuleWithCursor(Module):
if not self._parser: if not self._parser:
try: try:
ts, parser = builtin.CachedModule.cache[self.path] ts, parser = builtin.CachedModule.cache[self.path]
imports.invalidate_star_import_cache(parser.module) cache.invalidate_star_import_cache(parser.module)
del builtin.CachedModule.cache[self.path] del builtin.CachedModule.cache[self.path]
except KeyError: except KeyError: