mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-25 17:58:35 +08:00
fixed star import invalidation exception
This commit is contained in:
+2
-2
@@ -288,9 +288,9 @@ def cache_star_import(func):
|
|||||||
def invalidate_star_import_cache(module, only_main=False):
|
def invalidate_star_import_cache(module, only_main=False):
|
||||||
""" Important if some new modules are being reparsed """
|
""" Important if some new modules are being reparsed """
|
||||||
try:
|
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)
|
invalidate_star_import_cache(m, only_main=True)
|
||||||
|
|
||||||
del star_import_cache[module]
|
del star_import_cache[module]
|
||||||
|
|||||||
Reference in New Issue
Block a user