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

Commit

Permalink
Run pyupgrade --py37-plus --keep-percent-format on Synapse (#11685)
Browse files Browse the repository at this point in the history
* newsfragment

* fix newsfragment number

* update changelog

* remove extra space
  • Loading branch information
H-Shay authored Jan 5, 2022
1 parent 88a78c6 commit d8f94ee
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
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

0 comments on commit d8f94ee

Please sign in to comment.