forgot to move two function calls in the last commit
This commit is contained in:
1 parent
0d6d84402d
commit
a2e05c215a
2 files changed
+2
-4
No files matched your search
+1
-2
@@ -13,7 +13,6 @@ import common
|
||||
import debug
|
||||
import parsing
|
||||
import fast_parser
|
||||
import imports
|
||||
import evaluate
|
||||
|
||||
|
||||
@@ -57,7 +56,7 @@ class CachedModule(object):
|
||||
# In case there is already a module cached and this module
|
||||
# has to be reparsed, we also need to invalidate the import
|
||||
# caches.
|
||||
imports.invalidate_star_import_cache(parser.module)
|
||||
cache.invalidate_star_import_cache(parser.module)
|
||||
raise KeyError()
|
||||
except KeyError:
|
||||
self._load_module()
|
||||
|
||||
+1
-2
@@ -14,7 +14,6 @@ import fast_parser
|
||||
import builtin
|
||||
import debug
|
||||
import settings
|
||||
import imports
|
||||
|
||||
|
||||
class Module(builtin.CachedModule):
|
||||
@@ -64,7 +63,7 @@ class ModuleWithCursor(Module):
|
||||
if not self._parser:
|
||||
try:
|
||||
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]
|
||||
except KeyError:
|
||||
|
||||
Reference in new issue
Block a user