[Python-checkins] bpo-35567: Convert dict of constants to a set (GH-11296)
Raymond Hettinger
webhook-mailer at python.org
Sun Dec 23 11:25:52 EST 2018
https://github.com/python/cpython/commit/68151553845199136794bd60dcec238d8bfe0bdb
commit: 68151553845199136794bd60dcec238d8bfe0bdb
branch: master
author: Cheryl Sabella <cheryl.sabella at gmail.com>
committer: Raymond Hettinger <rhettinger at users.noreply.github.com>
date: 2018-12-23T08:25:43-08:00
summary:
bpo-35567: Convert dict of constants to a set (GH-11296)
files:
M Lib/wsgiref/util.py
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):
More information about the Python-checkins
mailing list