0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 08:53:46 +01:00

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

* newsfragment

* fix newsfragment number

* update changelog

* remove extra space
This commit is contained in:
Shay 2022-01-05 09:53:05 -08:00 committed by GitHub
parent 88a78c6577
commit d8f94eeec2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 2 deletions

1
changelog.d/11685.misc Normal file
View file

@ -0,0 +1 @@
Run `pyupgrade --py37-plus --keep-percent-format` on Synapse.

View file

@ -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}

View file

@ -1,4 +1,3 @@
# -*- 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");