Skip to content
Snippets Groups Projects
Unverified Commit d8f94eee authored by Shay's avatar Shay Committed by GitHub
Browse files

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

* newsfragment

* fix newsfragment number

* update changelog

* remove extra space
parent 88a78c65
No related branches found
No related tags found
No related merge requests found
Run `pyupgrade --py37-plus --keep-percent-format` on Synapse.
...@@ -466,7 +466,7 @@ class UserMediaRestServlet(RestServlet): ...@@ -466,7 +466,7 @@ class UserMediaRestServlet(RestServlet):
) )
deleted_media, total = await self.media_repository.delete_local_media_ids( 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} return HTTPStatus.OK, {"deleted_media": deleted_media, "total": total}
......
# -*- coding: utf-8 -*-
# Copyright 2021 The Matrix.org Foundation C.I.C. # Copyright 2021 The Matrix.org Foundation C.I.C.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment