From c706bae55b8d39acf1ce7027d0e077e35319f384 Mon Sep 17 00:00:00 2001 From: David Halter Date: Wed, 21 Nov 2012 16:58:22 +0100 Subject: [PATCH] fixed star import invalidation exception --- jedi/imports.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jedi/imports.py b/jedi/imports.py index f51bdd0f..d7befbc6 100644 --- a/jedi/imports.py +++ b/jedi/imports.py @@ -288,9 +288,9 @@ def cache_star_import(func): def invalidate_star_import_cache(module, only_main=False): """ Important if some new modules are being reparsed """ try: - mods = star_import_cache[module] + t, mods = star_import_cache[module] - for t, m in mods: + for m in mods: invalidate_star_import_cache(m, only_main=True) del star_import_cache[module]