From: Cheryl Sabella Date: Sun, 23 Dec 2018 16:25:43 +0000 (-0500) Subject: bpo-35567: Convert dict of constants to a set (GH-11296) X-Git-Tag: v3.8.0a1~216 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68151553845199136794bd60dcec238d8bfe0bdb;p=thirdparty%2FPython%2Fcpython.git bpo-35567: Convert dict of constants to a set (GH-11296) --- diff --git a/Lib/wsgiref/util.py b/Lib/wsgiref/util.py index 1cff7a37452e..cac52eb5a555 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):