Commit 68151553 authored by Cheryl Sabella's avatar Cheryl Sabella Committed by Raymond Hettinger

bpo-35567: Convert dict of constants to a set (GH-11296)

parent f06fba59
......@@ -162,9 +162,9 @@ def setup_testing_defaults(environ):
_hoppish = {
'connection':1, 'keep-alive':1, 'proxy-authenticate':1,
'proxy-authorization':1, 'te':1, 'trailers':1, 'transfer-encoding':1,
'upgrade':1
'connection', 'keep-alive', 'proxy-authenticate',
'proxy-authorization', 'te', 'trailers', 'transfer-encoding',
'upgrade'
}.__contains__
def is_hop_by_hop(header_name):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment