summary refs log tree commit diff
path: root/synapse/appservice
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2016-08-18 16:58:25 +0100
committerPaul "LeoNerd" Evans <paul@matrix.org>2016-08-18 16:58:25 +0100
commit2a91799fccd0791083131e8b23ac0b900e42b7f4 (patch)
tree577dacff8c06840b98a5c884cbc16ce630b58539 /synapse/appservice
parentAppease pep8 (diff)
downloadsynapse-2a91799fccd0791083131e8b23ac0b900e42b7f4.tar.xz
Minor syntax neatenings
Diffstat (limited to 'synapse/appservice')
-rw-r--r--synapse/appservice/api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/appservice/api.py b/synapse/appservice/api.py
index 4ccb5c43c1..d4cad1b1ed 100644
--- a/synapse/appservice/api.py
+++ b/synapse/appservice/api.py
@@ -73,7 +73,7 @@ class ApplicationServiceApi(SimpleHttpClient):
 
     @defer.inlineCallbacks
     def query_3pu(self, service, protocol, fields):
-        uri = service.url + ("/3pu/%s" % urllib.quote(protocol))
+        uri = "%s/3pu/%s" % (service.url, urllib.quote(protocol))
         response = None
         try:
             response = yield self.get_json(uri, fields)
@@ -84,7 +84,7 @@ class ApplicationServiceApi(SimpleHttpClient):
 
     @defer.inlineCallbacks
     def query_3pl(self, service, protocol, fields):
-        uri = service.url + ("/3pl/%s" % urllib.quote(protocol))
+        uri = "%s/3pl/%s" % (service.url, urllib.quote(protocol))
         response = None
         try:
             response = yield self.get_json(uri, fields)