Skip to content

Commit

Permalink
list comprehension would be redundant (#404)
Browse files Browse the repository at this point in the history
* list comprehension would be redundant

* going to precommit formatting
  • Loading branch information
ArtemIsmagilov authored Jun 12, 2024
1 parent 3010eaf commit 5fb6138
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions caldav/davclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,18 +751,15 @@ 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
]
to_wire(f"{x}: {response.headers[x]}") for x in response.headers
)
)
commlog.write(b"\n\n")
Expand Down

0 comments on commit 5fb6138

Please sign in to comment.