mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 08:39:26 -05:00
PEP8 and pyflakes warnings
This commit is contained in:
parent
a09882de83
commit
333836ff92
@ -623,7 +623,7 @@ class FederationHandler(BaseHandler):
|
|||||||
raise AuthError(403, "Host not in room.")
|
raise AuthError(403, "Host not in room.")
|
||||||
|
|
||||||
events = yield self.store.get_backfill_events(
|
events = yield self.store.get_backfill_events(
|
||||||
context,
|
room_id,
|
||||||
pdu_list,
|
pdu_list,
|
||||||
limit
|
limit
|
||||||
)
|
)
|
||||||
|
@ -428,7 +428,9 @@ class RoomMemberHandler(BaseHandler):
|
|||||||
if not is_host_in_room:
|
if not is_host_in_room:
|
||||||
# is *anyone* in the room?
|
# is *anyone* in the room?
|
||||||
room_member_keys = [
|
room_member_keys = [
|
||||||
v for (k,v) in context.current_state.keys() if k == "m.room.member"
|
v for (k, v) in context.current_state.keys() if (
|
||||||
|
k == "m.room.member"
|
||||||
|
)
|
||||||
]
|
]
|
||||||
if len(room_member_keys) == 0:
|
if len(room_member_keys) == 0:
|
||||||
# has the room been created so we can join it?
|
# has the room been created so we can join it?
|
||||||
|
Loading…
Reference in New Issue
Block a user