diff options
author | Erik Johnston <erik@matrix.org> | 2015-04-08 16:41:45 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-04-08 16:41:45 +0100 |
commit | 0575840866bd3668605a342dd6a877382505f3e3 (patch) | |
tree | b00fefb2f94d54f7bd533f07fd892301ed47147b /synapse/util/expiringcache.py | |
parent | Merge pull request #112 from matrix-org/hotfixes-v0.8.1-r2 (diff) | |
parent | Bump version (diff) | |
download | synapse-0575840866bd3668605a342dd6a877382505f3e3.tar.xz |
Merge pull request #119 from matrix-org/hotfixes-v0.8.1-r3 v0.8.1-r3
Hotfixes v0.8.1 r3
Diffstat (limited to 'synapse/util/expiringcache.py')
-rw-r--r-- | synapse/util/expiringcache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/expiringcache.py b/synapse/util/expiringcache.py index 1c7859297a..06d1eea01b 100644 --- a/synapse/util/expiringcache.py +++ b/synapse/util/expiringcache.py @@ -65,7 +65,7 @@ class ExpiringCache(object): if self._max_len and len(self._cache.keys()) > self._max_len: sorted_entries = sorted( self._cache.items(), - key=lambda k, v: v.time, + key=lambda (k, v): v.time, ) for k, _ in sorted_entries[self._max_len:]: |