synapse/visibility.py: fix SyntaxError on py3.7

This commit is contained in:
Ivan Shapovalov 2018-10-14 11:37:04 +03:00
parent 381d2cfdf0
commit fb216a22db
2 changed files with 2 additions and 1 deletions

1
changelog.d/4033.bugfix Normal file
View File

@ -0,0 +1 @@
Synapse now starts on Python 3.7.

View File

@ -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 # Whatever else we do, we need to check for senders which have requested
# erasure of their data. # erasure of their data.
erased_senders = yield store.are_users_erased( erased_senders = yield store.are_users_erased(
e.sender for e in events, (e.sender for e in events),
) )
def redact_disallowed(event, state): def redact_disallowed(event, state):