diff options
author | Erik Johnston <erik@matrix.org> | 2015-04-08 16:46:56 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-04-08 16:46:56 +0100 |
commit | a43b40449b5257cec4e2e740c2f90728be84b695 (patch) | |
tree | 805220033f1fcc25dbf88e0356ee3f90ec7a3970 /synapse/util | |
parent | Merge branch 'develop' of github.com:matrix-org/synapse into mysql (diff) | |
parent | Merge branch 'master' of github.com:matrix-org/synapse into develop (diff) | |
download | synapse-a43b40449b5257cec4e2e740c2f90728be84b695.tar.xz |
Merge branch 'develop' of github.com:matrix-org/synapse into mysql
Diffstat (limited to 'synapse/util')
-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:]: |