mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-09 05:22:19 +08:00
fix python3.2 problems
This commit is contained in:
@@ -298,7 +298,9 @@ def invalidate_star_import_cache(module, only_main=False):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
if not only_main:
|
if not only_main:
|
||||||
for key, (t, mods) in star_import_cache.items():
|
# We need a list here because otherwise the list is being changed
|
||||||
|
# during the iteration in py3k: iteritems -> items.
|
||||||
|
for key, (t, mods) in list(star_import_cache.items()):
|
||||||
if module in mods:
|
if module in mods:
|
||||||
invalidate_star_import_cache(key)
|
invalidate_star_import_cache(key)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user