Skip to content

Commit

Permalink
list comprehension would be redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemIsmagilov committed Jun 12, 2024
1 parent 9cbfc9e commit 1972ab8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions caldav/davclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,19 +751,14 @@ 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))
commlog.write(b"<====\n")
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
]
)
b"\n".join(to_wire(f"{x}: {response.headers[x]}") for x in response.headers)
)
commlog.write(b"\n\n")
ct = response.headers.get("Content-Type", "")
Expand Down

0 comments on commit 1972ab8

Please sign in to comment.