forked from VimPlug/jedi
forgot to move two function calls in the last commit
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user