Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 9601ac8

Browse files
committed
Fixup part of the linting problems in http11/response.py
1 parent c64111f commit 9601ac8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hyper/http11/response.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ def __init__(self, code, reason, headers, sock, connection=None):
5454
self._length = None
5555

5656
# Whether we expect a chunked response.
57-
self._chunked = b'chunked' in self.headers.get(b'transfer-encoding', [])
57+
self._chunked = (
58+
b'chunked' in self.headers.get(b'transfer-encoding', [])
59+
)
5860

5961
# One of the following must be true: we must expect that the connection
6062
# will be closed following the body, or that a content-length was sent,
@@ -76,7 +78,7 @@ def __init__(self, code, reason, headers, sock, connection=None):
7678
self._decompressobj = None
7779

7880
# This is a reference that allows for the Response class to tell the
79-
# parent connection object to throw away its socket object. This is to
81+
# parent connection object to throw away its socket object. This is to
8082
# be used when the connection is genuinely closed, so that the user
8183
# can keep using the Connection object.
8284
# Strictly, we take a weakreference to this so that we don't set up a

0 commit comments

Comments
 (0)