From 5fb6138ebbe617ee17d26b57fdd3ad346cd97cae Mon Sep 17 00:00:00 2001 From: ArtemIsmagilov <118372045+ArtemIsmagilov@users.noreply.github.com> Date: Wed, 12 Jun 2024 17:24:18 +0400 Subject: [PATCH] list comprehension would be redundant (#404) * list comprehension would be redundant * going to precommit formatting --- caldav/davclient.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/caldav/davclient.py b/caldav/davclient.py index 9284ea1..9e85eac 100644 --- a/caldav/davclient.py +++ b/caldav/davclient.py @@ -751,7 +751,7 @@ def request( commlog.write(b"\n====>\n") commlog.write(f"{method} {url}\n".encode("utf-8")) commlog.write( - b"\n".join([to_wire(f"{x}: {headers[x]}") for x in headers]) + b"\n".join(to_wire(f"{x}: {headers[x]}") for x in headers) ) commlog.write(b"\n\n") commlog.write(to_wire(body)) @@ -759,10 +759,7 @@ def request( commlog.write(f"{response.status} {response.reason}".encode("utf-8")) commlog.write( b"\n".join( - [ - to_wire(f"{x}: {response.headers[x]}") - for x in response.headers - ] + to_wire(f"{x}: {response.headers[x]}") for x in response.headers ) ) commlog.write(b"\n\n")