mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 13:56:02 -04:00
PEP8
This commit is contained in:
parent
c46088405a
commit
5d439b127b
8 changed files with 22 additions and 20 deletions
|
@ -192,7 +192,9 @@ class Transaction(JsonEncodedObject):
|
|||
transaction_id and origin_server_ts keys.
|
||||
"""
|
||||
if "origin_server_ts" not in kwargs:
|
||||
raise KeyError("Require 'origin_server_ts' to construct a Transaction")
|
||||
raise KeyError(
|
||||
"Require 'origin_server_ts' to construct a Transaction"
|
||||
)
|
||||
if "transaction_id" not in kwargs:
|
||||
raise KeyError(
|
||||
"Require 'transaction_id' to construct a Transaction"
|
||||
|
@ -204,6 +206,3 @@ class Transaction(JsonEncodedObject):
|
|||
kwargs["pdus"] = [p.get_dict() for p in pdus]
|
||||
|
||||
return Transaction(**kwargs)
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue