summary refs log tree commit diff
path: root/synapse/util
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-01-29 11:29:14 +0000
committerErik Johnston <erik@matrix.org>2016-01-29 11:29:14 +0000
commitfb7299800feb0b8bc0f8429fc5b840abea0609d3 (patch)
tree43e323022265494a1b94417f7a9cf4c47091b83b /synapse/util
parentRemove spurious self.size (diff)
downloadsynapse-fb7299800feb0b8bc0f8429fc5b840abea0609d3.tar.xz
Directly set self.value
Diffstat (limited to 'synapse/util')
-rw-r--r--synapse/util/caches/treecache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/caches/treecache.py b/synapse/util/caches/treecache.py
index 3331ea9eba..29d02f7e95 100644
--- a/synapse/util/caches/treecache.py
+++ b/synapse/util/caches/treecache.py
@@ -72,7 +72,7 @@ class _Entry(object):
     __slots__ = ["value"]
 
     def __init__(self, value):
-        object.__setattr__(self, "value", value)
+        self.value = value
 
 
 def _strip_and_count_entires(d):