]> granicus.if.org Git - python/commitdiff
bpo-35567: Convert dict of constants to a set (GH-11296)
authorCheryl Sabella <cheryl.sabella@gmail.com>
Sun, 23 Dec 2018 16:25:43 +0000 (11:25 -0500)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>
Sun, 23 Dec 2018 16:25:43 +0000 (08:25 -0800)
Lib/wsgiref/util.py

index 1cff7a37452e596e91747f7abc42df1542b77941..cac52eb5a555d18634d12fbf6e174b118c7d0a56 100644 (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):