Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Run pyupgrade --py37-plus --keep-percent-format on Synapse #11685

Merged
merged 4 commits into from
Jan 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/11685.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Run `pyupgrade --py37-plus --keep-percent-format` on Synapse.
2 changes: 1 addition & 1 deletion synapse/rest/admin/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ async def on_DELETE(
)

deleted_media, total = await self.media_repository.delete_local_media_ids(
([row["media_id"] for row in media])
[row["media_id"] for row in media]
)

return HTTPStatus.OK, {"deleted_media": deleted_media, "total": total}
Expand Down
1 change: 0 additions & 1 deletion synapse/storage/databases/main/session.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2021 The Matrix.org Foundation C.I.C.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down