summary refs log tree commit diff
path: root/synapse/util
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2016-03-08 11:08:20 +0000
committerMark Haines <mjark@negativecurvature.net>2016-03-08 11:08:20 +0000
commitea72bd960052f95599150a287a7fccbe668e2c23 (patch)
tree8ca401db42e800c7393fb3df3919bf754b918786 /synapse/util
parentMerge pull request #627 from matrix-org/dbkr/guest_reuse_send_user_id (diff)
parentUse syntax that works on both py2.7 and py3 (diff)
downloadsynapse-ea72bd960052f95599150a287a7fccbe668e2c23.tar.xz
Merge pull request #631 from matrix-org/markjh/py3v1
Use syntax that's valid on both py2.7 and py3
Diffstat (limited to 'synapse/util')
-rw-r--r--synapse/util/caches/expiringcache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/caches/expiringcache.py b/synapse/util/caches/expiringcache.py
index e863a8f8a9..2b68c1ac93 100644
--- a/synapse/util/caches/expiringcache.py
+++ b/synapse/util/caches/expiringcache.py
@@ -69,7 +69,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 item: item[1].time,
             )
 
             for k, _ in sorted_entries[self._max_len:]: