summary refs log tree commit diff
path: root/synapse/handlers/directory.py
diff options
context:
space:
mode:
authorDaniel Wagner-Hall <dawagner@gmail.com>2016-02-02 17:18:54 +0000
committerDaniel Wagner-Hall <dawagner@gmail.com>2016-02-02 17:18:54 +0000
commitde11b5b9b5da286d2cb96f8ae5c18f6b55b9b460 (patch)
tree009a6132dd0c507fb68a449efc247519d2a8aab7 /synapse/handlers/directory.py
parentMerge pull request #549 from matrix-org/erikj/sync (diff)
parentFix flake8 warnings for new flake8 (diff)
downloadsynapse-de11b5b9b5da286d2cb96f8ae5c18f6b55b9b460.tar.xz
Merge pull request #551 from matrix-org/daniel/flake8
Fix flake8 warnings for new flake8
Diffstat (limited to 'synapse/handlers/directory.py')
-rw-r--r--synapse/handlers/directory.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/directory.py b/synapse/handlers/directory.py
index 691564c651..4efecb1ffd 100644
--- a/synapse/handlers/directory.py
+++ b/synapse/handlers/directory.py
@@ -175,8 +175,8 @@ class DirectoryHandler(BaseHandler):
         # If this server is in the list of servers, return it first.
         if self.server_name in servers:
             servers = (
-                [self.server_name]
-                + [s for s in servers if s != self.server_name]
+                [self.server_name] +
+                [s for s in servers if s != self.server_name]
             )
         else:
             servers = list(servers)