From 68151553845199136794bd60dcec238d8bfe0bdb Mon Sep 17 00:00:00 2001 From: Cheryl Sabella Date: Sun, 23 Dec 2018 11:25:43 -0500 Subject: [PATCH] bpo-35567: Convert dict of constants to a set (GH-11296) --- Lib/wsgiref/util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/wsgiref/util.py b/Lib/wsgiref/util.py index 1cff7a3745..cac52eb5a5 100644 --- a/Lib/wsgiref/util.py +++ b/Lib/wsgiref/util.py @@ -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): -- 2.40.0