From 9dda2f73031e043a2ed721d4ed51885d07dc6d44 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 18 Feb 2016 12:03:14 +0530 Subject: [PATCH] dict might change, pull into list --- oml/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oml/cache.py b/oml/cache.py index 7c5368d..22b0471 100644 --- a/oml/cache.py +++ b/oml/cache.py @@ -8,7 +8,7 @@ class Cache(dict): def get(self, key): now = time.time() - for key, value in self._added.items(): + for key, value in list(self._added.items()): if value < now: del self._added[key] del self[key]