summary refs log tree commit diff
path: root/synapse/app/homeserver.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-02-10 17:58:36 +0000
committerMark Haines <mark.haines@matrix.org>2015-02-10 17:58:36 +0000
commit84a769cdb7321481954c386a040d7e7ff504d02b (patch)
treeb0514f19b1f44c01d2e88a188c1a764299185c0c /synapse/app/homeserver.py
parentLog all the exits from _attempt_new_transaction (diff)
downloadsynapse-84a769cdb7321481954c386a040d7e7ff504d02b.tar.xz
Fix code-style
Diffstat (limited to 'synapse/app/homeserver.py')
-rwxr-xr-xsynapse/app/homeserver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index 8976ff2e82..ff6680e7da 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -134,7 +134,7 @@ class SynapseHomeServer(HomeServer):
             logger.info("Attaching %s to path %s", resource, full_path)
             last_resource = self.root_resource
             for path_seg in full_path.split('/')[1:-1]:
-                if not path_seg in last_resource.listNames():
+                if path_seg not in last_resource.listNames():
                     # resource doesn't exist, so make a "dummy resource"
                     child_resource = Resource()
                     last_resource.putChild(path_seg, child_resource)