diff options
author | Shay <hillerys@element.io> | 2022-01-05 09:53:05 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-05 09:53:05 -0800 |
commit | d8f94eeec23eba6274896e1aa2f92aa97ff10bee (patch) | |
tree | acc6ec7011b6379d2067e8ac8f6af527b7a2d565 | |
parent | Cache empty responses from `/user/devices` (#11587) (diff) | |
download | synapse-d8f94eeec23eba6274896e1aa2f92aa97ff10bee.tar.xz |
Run `pyupgrade --py37-plus --keep-percent-format` on Synapse (#11685)
* newsfragment * fix newsfragment number * update changelog * remove extra space
-rw-r--r-- | changelog.d/11685.misc | 1 | ||||
-rw-r--r-- | synapse/rest/admin/media.py | 2 | ||||
-rw-r--r-- | synapse/storage/databases/main/session.py | 1 |
3 files changed, 2 insertions, 2 deletions
diff --git a/changelog.d/11685.misc b/changelog.d/11685.misc new file mode 100644 index 0000000000..c4566b2012 --- /dev/null +++ b/changelog.d/11685.misc @@ -0,0 +1 @@ +Run `pyupgrade --py37-plus --keep-percent-format` on Synapse. diff --git a/synapse/rest/admin/media.py b/synapse/rest/admin/media.py index 7236e4027f..299f5c9eb0 100644 --- a/synapse/rest/admin/media.py +++ b/synapse/rest/admin/media.py @@ -466,7 +466,7 @@ class UserMediaRestServlet(RestServlet): ) 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} diff --git a/synapse/storage/databases/main/session.py b/synapse/storage/databases/main/session.py index 5a97120437..e8c776b97a 100644 --- a/synapse/storage/databases/main/session.py +++ b/synapse/storage/databases/main/session.py @@ -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"); |