diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2017-10-31 04:07:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-31 04:07:36 (GMT) |
commit | f0f62cc61ec8c6b7b70470beadbab64eb23e6a5d (patch) | |
tree | 14177563dfdaad40adf162ea9f3b788d8a6d75d7 /Lib/wsgiref | |
parent | 11225753a89c2907bb717e6c050fe907e5e11829 (diff) | |
download | cpython-f0f62cc61ec8c6b7b70470beadbab64eb23e6a5d.zip cpython-f0f62cc61ec8c6b7b70470beadbab64eb23e6a5d.tar.gz cpython-f0f62cc61ec8c6b7b70470beadbab64eb23e6a5d.tar.bz2 |
Remove tiny bit of deadcode from wsgiref.validate (#3996)
Diffstat (limited to 'Lib/wsgiref')
-rw-r--r-- | Lib/wsgiref/validate.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/wsgiref/validate.py b/Lib/wsgiref/validate.py index 6107dcd..1c00bde 100644 --- a/Lib/wsgiref/validate.py +++ b/Lib/wsgiref/validate.py @@ -390,7 +390,6 @@ def check_headers(headers): assert_(type(headers) is list, "Headers (%r) must be of type list: %r" % (headers, type(headers))) - header_names = {} for item in headers: assert_(type(item) is tuple, "Individual headers (%r) must be of type tuple: %r" @@ -403,7 +402,6 @@ def check_headers(headers): "The Status header cannot be used; it conflicts with CGI " "script, and HTTP status is not given through headers " "(value: %r)." % value) - header_names[name.lower()] = None assert_('\n' not in name and ':' not in name, "Header names may not contain ':' or '\\n': %r" % name) assert_(header_re.search(name), "Bad header name: %r" % name) |