From 9888e2faaf5c9982cf4bf6219b8b2552039126d9 Mon Sep 17 00:00:00 2001 From: David Halter Date: Sun, 9 Dec 2012 15:03:49 +0100 Subject: [PATCH] fixed problem with cache duration of star imports --- jedi/modules.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jedi/modules.py b/jedi/modules.py index e92cc0bc..76dd5f14 100644 --- a/jedi/modules.py +++ b/jedi/modules.py @@ -13,6 +13,7 @@ import builtin import debug import evaluate import settings +import imports class Module(builtin.CachedModule): @@ -61,6 +62,9 @@ class ModuleWithCursor(Module): """ get the parser lazy """ if not self._parser: try: + ts, parser = builtin.CachedModule.cache[self.path] + imports.invalidate_star_import_cache(parser.module) + del builtin.CachedModule.cache[self.path] except KeyError: pass