Skip to content

Commit 49f902f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c59955e commit 49f902f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

aiohttp/client_reqrep.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -755,9 +755,7 @@ def _get_content_length(self) -> int | None:
755755

756756
content_length_hdr = self.headers[hdrs.CONTENT_LENGTH]
757757
if not _DIGITS_RE.fullmatch(content_length_hdr):
758-
raise ValueError(
759-
f"Invalid Content-Length header: {content_length_hdr!r}"
760-
)
758+
raise ValueError(f"Invalid Content-Length header: {content_length_hdr!r}")
761759
return int(content_length_hdr)
762760

763761
@property

0 commit comments

Comments
 (0)