Address codestyle concerns

code_spécifique_watcha
Michael Kaye 5 years ago
parent 0d7e9523e5
commit e4d98188da
  1. 7
      synapse/rest/client/v2_alpha/sync.py
  2. 4
      synapse/rest/media/v1/preview_url_resource.py
  3. 4
      synapse/storage/data_stores/main/event_federation.py

@ -114,7 +114,12 @@ class SyncRestServlet(RestServlet):
logger.debug(
"/sync: user=%r, timeout=%r, since=%r, "
"set_presence=%r, filter_id=%r, device_id=%r",
user, timeout, since, set_presence, filter_id, device_id
user,
timeout,
since,
set_presence,
filter_id,
device_id,
)
request_key = (user, timeout, since, filter_id, full_state, device_id)

@ -118,7 +118,9 @@ class PreviewUrlResource(DirectServeResource):
value = getattr(url_tuple, attrib)
logger.debug(
"Matching attrib '%s' with value '%s' against" " pattern '%s'",
attrib, value, pattern
attrib,
value,
pattern,
)
if value is None:

@ -364,9 +364,7 @@ class EventFederationWorkerStore(EventsWorkerStore, SignatureWorkerStore, SQLBas
)
def _get_backfill_events(self, txn, room_id, event_list, limit):
logger.debug(
"_get_backfill_events: %s, %r, %s", room_id, event_list, limit
)
logger.debug("_get_backfill_events: %s, %r, %s", room_id, event_list, limit)
event_results = set()

Loading…
Cancel
Save