diff --git a/synapse/__init__.py b/synapse/__init__.py
index 749a60329c0e76920bb9ae2858c6d74f5bdddb59..fd87c7e2d02b263bfb067396df914a87c6a7ed80 100644
--- a/synapse/__init__.py
+++ b/synapse/__init__.py
@@ -16,4 +16,4 @@
 """ This is a reference implementation of a Matrix home server.
 """
 
-__version__ = "0.8.1-r2"
+__version__ = "0.8.1-r3"
diff --git a/synapse/util/expiringcache.py b/synapse/util/expiringcache.py
index 1c7859297a1c98df0a6db2f1220a1022882b0591..06d1eea01b96342bbec9afec1d8d8ac1634a594f 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:]: