summary refs log tree commit diff
path: root/synapse/util/caches/treecache.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-01-21 19:17:32 +0000
committerDavid Baker <dave@matrix.org>2016-01-21 19:17:32 +0000
commit330be18ec5db6e903ac4d5fe97b3e3940fea2a5b (patch)
tree03fa40c3bcfc98e82c0b60cd1c3e92159e80795e /synapse/util/caches/treecache.py
parentChange LRUCache to be tree-based so we can delete subtrees. (diff)
downloadsynapse-330be18ec5db6e903ac4d5fe97b3e3940fea2a5b.tar.xz
peppate
Diffstat (limited to 'synapse/util/caches/treecache.py')
-rw-r--r--synapse/util/caches/treecache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/util/caches/treecache.py b/synapse/util/caches/treecache.py
index 1e5f87e6ad..6faf2cf75f 100644
--- a/synapse/util/caches/treecache.py
+++ b/synapse/util/caches/treecache.py
@@ -43,10 +43,10 @@ class TreeCache(object):
         node_and_keys.append((self.root, None))
 
         for i in range(len(node_and_keys) - 1):
-            n,k = node_and_keys[i]
+            n, k = node_and_keys[i]
 
             if n:
                 break
             node_and_keys[i+1][0].pop(k)
 
-        return popped
\ No newline at end of file
+        return popped