summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2018-10-15 20:13:19 +1100
committerGitHub <noreply@github.com>2018-10-15 20:13:19 +1100
commitf9ce1b4eb0e8c28d1d7f1373292c470cfeb15ed4 (patch)
tree0632fa54fdc65a87404a75b6d9485df72313b45b /synapse
parentMake workers work on Py3 (#4027) (diff)
parentsynapse/app: frontend_proxy.py: actually make workers work on py3 (diff)
downloadsynapse-f9ce1b4eb0e8c28d1d7f1373292c470cfeb15ed4.tar.xz
Merge pull request #4033 from intelfx/py37-hotfixes
py3: python3.7 hotfixes
Diffstat (limited to 'synapse')
-rw-r--r--synapse/app/frontend_proxy.py4
-rw-r--r--synapse/visibility.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/synapse/app/frontend_proxy.py b/synapse/app/frontend_proxy.py
index fc4b25de1c..f5c61dec5b 100644
--- a/synapse/app/frontend_proxy.py
+++ b/synapse/app/frontend_proxy.py
@@ -68,7 +68,7 @@ class PresenceStatusStubServlet(ClientV1RestServlet):
             "Authorization": auth_headers,
         }
         result = yield self.http_client.get_json(
-            self.main_uri + request.uri,
+            self.main_uri + request.uri.decode('ascii'),
             headers=headers,
         )
         defer.returnValue((200, result))
@@ -125,7 +125,7 @@ class KeyUploadServlet(RestServlet):
                 "Authorization": auth_headers,
             }
             result = yield self.http_client.post_json_get_json(
-                self.main_uri + request.uri,
+                self.main_uri + request.uri.decode('ascii'),
                 body,
                 headers=headers,
             )
diff --git a/synapse/visibility.py b/synapse/visibility.py
index c64ad2144c..43f48196be 100644
--- a/synapse/visibility.py
+++ b/synapse/visibility.py
@@ -219,7 +219,7 @@ def filter_events_for_server(store, server_name, events):
     # Whatever else we do, we need to check for senders which have requested
     # erasure of their data.
     erased_senders = yield store.are_users_erased(
-        e.sender for e in events,
+        (e.sender for e in events),
     )
 
     def redact_disallowed(event, state):