Skip to content
Snippets Groups Projects
Commit ccda401d authored by Erik Johnston's avatar Erik Johnston
Browse files

SYN-338: Fix typo that caused the cache to throw an exception in some instances

parent 532ebc4a
Branches
Tags
No related merge requests found
...@@ -65,7 +65,7 @@ class ExpiringCache(object): ...@@ -65,7 +65,7 @@ class ExpiringCache(object):
if self._max_len and len(self._cache.keys()) > self._max_len: if self._max_len and len(self._cache.keys()) > self._max_len:
sorted_entries = sorted( sorted_entries = sorted(
self._cache.items(), self._cache.items(),
key=lambda k, v: v.time, key=lambda (k, v): v.time,
) )
for k, _ in sorted_entries[self._max_len:]: for k, _ in sorted_entries[self._max_len:]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment