mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-22 13:21:26 +08:00
fixed a recursion problem, that occured with invalidate_star_imports
This commit is contained in:
@@ -291,10 +291,10 @@ def invalidate_star_import_cache(module, only_main=False):
|
|||||||
try:
|
try:
|
||||||
t, mods = star_import_cache[module]
|
t, mods = star_import_cache[module]
|
||||||
|
|
||||||
|
del star_import_cache[module]
|
||||||
|
|
||||||
for 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]
|
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user