summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-03-13 15:24:03 +0000
committerErik Johnston <erik@matrix.org>2015-03-13 15:24:03 +0000
commitdea236e4fa6dd9f42e2adc10858b118c814d28d4 (patch)
tree256bdfd3953fe7b90dcba75fd5168944f3b352b5
parentImplement registering with shared secret. (diff)
downloadsynapse-dea236e4fa6dd9f42e2adc10858b118c814d28d4.tar.xz
Add missing commas
Diffstat (limited to '')
-rw-r--r--synapse/http/servlet.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/http/servlet.py b/synapse/http/servlet.py
index a4eb6c817c..265559a3ea 100644
--- a/synapse/http/servlet.py
+++ b/synapse/http/servlet.py
@@ -51,8 +51,8 @@ class RestServlet(object):
             pattern = self.PATTERN
 
             for method in ("GET", "PUT", "POST", "OPTIONS", "DELETE"):
-                if hasattr(self, "on_%s" % (method)):
-                    method_handler = getattr(self, "on_%s" % (method))
+                if hasattr(self, "on_%s" % (method,)):
+                    method_handler = getattr(self, "on_%s" % (method,))
                     http_server.register_path(method, pattern, method_handler)
         else:
             raise NotImplementedError("RestServlet must register something.")