mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:06:07 -04:00
Run Black. (#5482)
This commit is contained in:
parent
7dcf984075
commit
32e7c9e7f2
376 changed files with 9142 additions and 10388 deletions
|
@ -312,9 +312,7 @@ class SQLBaseStore(object):
|
|||
if res:
|
||||
for user in res:
|
||||
self.set_expiration_date_for_user_txn(
|
||||
txn,
|
||||
user["name"],
|
||||
use_delta=True,
|
||||
txn, user["name"], use_delta=True
|
||||
)
|
||||
|
||||
yield self.runInteraction(
|
||||
|
@ -1667,7 +1665,7 @@ def db_to_json(db_content):
|
|||
# Decode it to a Unicode string before feeding it to json.loads, so we
|
||||
# consistenty get a Unicode-containing object out.
|
||||
if isinstance(db_content, (bytes, bytearray)):
|
||||
db_content = db_content.decode('utf8')
|
||||
db_content = db_content.decode("utf8")
|
||||
|
||||
try:
|
||||
return json.loads(db_content)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue