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

Commit 4ba845a

Browse files
committed
Fixup linting errors in http20/util.py.
1 parent b1c0f85 commit 4ba845a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

hyper/http20/util.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def set_pop(set, item):
2828
return [(set_pop(keys, k), b'\x00'.join(headers[k])) for k, v in kvset
2929
if k in keys]
3030

31+
3132
def split_repeated_headers(kvset):
3233
"""
3334
Given a set of key-value pairs (like for HTTP headers!), finds values that
@@ -49,8 +50,11 @@ def h2_safe_headers(headers):
4950
5051
Currently, this strips the Connection header and any header it refers to.
5152
"""
52-
stripped = {i.lower().strip() for k, v in headers if k == 'connection'
53-
for i in v.split(',')}
53+
stripped = {
54+
i.lower().strip()
55+
for k, v in headers if k == 'connection'
56+
for i in v.split(',')
57+
}
5458
stripped.add('connection')
5559

5660
return [header for header in headers if header[0] not in stripped]

0 commit comments

Comments
 (0)