]> granicus.if.org Git - python/commitdiff
Remove tiny bit of deadcode from wsgiref.validate (#3996)
authorAlex Gaynor <alex.gaynor@gmail.com>
Tue, 31 Oct 2017 04:07:36 +0000 (00:07 -0400)
committerGitHub <noreply@github.com>
Tue, 31 Oct 2017 04:07:36 +0000 (00:07 -0400)
Lib/wsgiref/validate.py

index 6107dcd7a4d24d127415866a743c17a74630974f..1c00bde220e751655ba6c75bc9661d56550bc795 100644 (file)
@@ -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)