mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-11 22:04:19 -05:00
Linting soothes the savage PEP8 monster
This commit is contained in:
parent
306361b31b
commit
8c0ff0287a
@ -53,7 +53,8 @@ class E2eRoomKeysHandler(object):
|
|||||||
user_id(str): the user whose keys we're getting
|
user_id(str): the user whose keys we're getting
|
||||||
version(str): the version ID of the backup we're getting keys from
|
version(str): the version ID of the backup we're getting keys from
|
||||||
room_id(string): room ID to get keys for, for None to get keys for all rooms
|
room_id(string): room ID to get keys for, for None to get keys for all rooms
|
||||||
session_id(string): session ID to get keys for, for None to get keys for all sessions
|
session_id(string): session ID to get keys for, for None to get keys for all
|
||||||
|
sessions
|
||||||
Returns:
|
Returns:
|
||||||
A deferred list of dicts giving the session_data and message metadata for
|
A deferred list of dicts giving the session_data and message metadata for
|
||||||
these room keys.
|
these room keys.
|
||||||
@ -80,8 +81,10 @@ class E2eRoomKeysHandler(object):
|
|||||||
Args:
|
Args:
|
||||||
user_id(str): the user whose backup we're deleting
|
user_id(str): the user whose backup we're deleting
|
||||||
version(str): the version ID of the backup we're deleting
|
version(str): the version ID of the backup we're deleting
|
||||||
room_id(string): room ID to delete keys for, for None to delete keys for all rooms
|
room_id(string): room ID to delete keys for, for None to delete keys for all
|
||||||
session_id(string): session ID to delete keys for, for None to delete keys for all sessions
|
rooms
|
||||||
|
session_id(string): session ID to delete keys for, for None to delete keys
|
||||||
|
for all sessions
|
||||||
Returns:
|
Returns:
|
||||||
A deferred of the deletion transaction
|
A deferred of the deletion transaction
|
||||||
"""
|
"""
|
||||||
@ -138,7 +141,9 @@ class E2eRoomKeysHandler(object):
|
|||||||
if version_info['version'] != version:
|
if version_info['version'] != version:
|
||||||
# Check that the version we're trying to upload actually exists
|
# Check that the version we're trying to upload actually exists
|
||||||
try:
|
try:
|
||||||
version_info = yield self.store.get_e2e_room_keys_version_info(user_id, version)
|
version_info = yield self.store.get_e2e_room_keys_version_info(
|
||||||
|
user_id, version,
|
||||||
|
)
|
||||||
# if we get this far, the version must exist
|
# if we get this far, the version must exist
|
||||||
raise RoomKeysVersionError(current_version=version_info['version'])
|
raise RoomKeysVersionError(current_version=version_info['version'])
|
||||||
except StoreError as e:
|
except StoreError as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user