diff options
author | Erik Johnston <erik@matrix.org> | 2015-03-13 15:24:03 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-03-13 15:24:03 +0000 |
commit | dea236e4fa6dd9f42e2adc10858b118c814d28d4 (patch) | |
tree | 256bdfd3953fe7b90dcba75fd5168944f3b352b5 /synapse | |
parent | Implement registering with shared secret. (diff) | |
download | synapse-dea236e4fa6dd9f42e2adc10858b118c814d28d4.tar.xz |
Add missing commas
Diffstat (limited to '')
-rw-r--r-- | synapse/http/servlet.py | 4 |
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.") |