Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #119 from matrix-org/hotfixes-v0.8.1-r3
Browse files Browse the repository at this point in the history
Hotfixes v0.8.1 r3
  • Loading branch information
erikjohnston committed Apr 8, 2015
2 parents 532ebc4 + 45131b2 commit 0575840
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion synapse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
""" This is a reference implementation of a Matrix home server.
"""

__version__ = "0.8.1-r2"
__version__ = "0.8.1-r3"
2 changes: 1 addition & 1 deletion synapse/util/expiringcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __setitem__(self, key, value):
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:]:
Expand Down

0 comments on commit 0575840

Please sign in to comment.