From 14059e230056ba2eaca25499339ddb053bf4ee42 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Fri, 23 Nov 2018 16:02:48 +0000 Subject: [PATCH] pep8 --- synapse/federation/federation_server.py | 4 +++- synapse/rest/client/v1/admin.py | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/synapse/federation/federation_server.py b/synapse/federation/federation_server.py index b878023058..eb337007f1 100644 --- a/synapse/federation/federation_server.py +++ b/synapse/federation/federation_server.py @@ -641,7 +641,9 @@ class FederationServer(FederationBase): dont_relay.add(dest) if destinations: - pdu.unsigned["destinations"] = {d: c for d, c in destinations.items() if d not in dont_relay} + pdu.unsigned["destinations"] = { + d: c for d, c in destinations.items() if d not in dont_relay + } yield self.handler.on_receive_pdu( origin, pdu, sent_to_us_directly=True, diff --git a/synapse/rest/client/v1/admin.py b/synapse/rest/client/v1/admin.py index c729cdbd30..50bfd0bb9e 100644 --- a/synapse/rest/client/v1/admin.py +++ b/synapse/rest/client/v1/admin.py @@ -810,8 +810,10 @@ class ServerHealth(ClientV1RestServlet): "room_id": room_id, }) - event, context = yield self.event_creation_handler.create_new_client_event( - builder=builder, + event, context = yield ( + self.event_creation_handler.create_new_client_event( + builder=builder, + ) ) event.internal_metadata.internal_event = True yield self.event_creation_handler.handle_new_client_event(