Use ruff linter to fix issues and provide consistent formatting

This commit is contained in:
Ian Renton
2026-08-15 08:25:54 +01:00
parent 7391c28cd0
commit af3f82c14d
121 changed files with 1989 additions and 996 deletions
+6 -2
View File
@@ -35,7 +35,11 @@ class V1RedirectHandler(tornado.web.RequestHandler):
if isinstance(response.headers, HTTPHeaders):
for name, value in response.headers.get_all():
# Let Tornado recompute these for the outgoing response
if name.lower() not in ("content-length", "transfer-encoding", "connection"):
if name.lower() not in (
"content-length",
"transfer-encoding",
"connection",
):
self.add_header(name, value)
if response.body:
self.write(response.body)
@@ -54,4 +58,4 @@ class V1RedirectHandler(tornado.web.RequestHandler):
await self._proxy(path)
async def patch(self, path):
await self._proxy(path)
await self._proxy(path)