fix another dictionary changed size during iteration exception, possibly triggered only under python3
This commit is contained in:
1 parent
8409fdaa48
commit
39e4cd3136
1 file changed
+1
-1
@@ -848,7 +848,7 @@ class PreemptiveCache(object):
|
||||
|
||||
with self._lock:
|
||||
all_data = self.get_all_data()
|
||||
for root, entries in all_data.items():
|
||||
for root, entries in list(all_data.items()):
|
||||
old_count = len(entries)
|
||||
entries = cleanup_function(root, entries)
|
||||
if not entries:
|
||||
|
||||
Reference in new issue
Block a user