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

This commit is contained in:
Cheryl Sabella 2018-12-23 11:25:43 -05:00 committed by Raymond Hettinger
parent f06fba5965
commit 6815155384
1 changed files with 3 additions and 3 deletions

View File

@ -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):