8000 Remove tiny bit of deadcode from wsgiref.validate (#3996) · ultimatecoder/cpython@f0f62cc · GitHub
[go: up one dir, main page]

Skip to content

Commit f0f62cc

Browse files
authored
Remove tiny bit of deadcode from wsgiref.validate (python#3996)
1 parent 1122575 commit f0f62cc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Lib/wsgiref/validate.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,6 @@ def check_headers(headers):
390390
assert_(type(headers) is list,
391391
"Headers (%r) must be of type list: %r"
392392
% (headers, type(headers)))
393-
header_names = {}
394393
for item in headers:
395394
assert_(type(item) is tuple,
396395
"Individual headers (%r) must be of type tuple: %r"
@@ -403,7 +402,6 @@ def check_headers(headers):
403402
"The Status header cannot be used; it conflicts with CGI "
404403
"script, and HTTP status is not given through headers "
405404
"(value: %r)." % value)
406-
header_names[name.lower()] = None
407405
assert_('\n' not in name and ':' not in name,
408406
"Header names may not contain ':' or '\\n': %r" % name)
409407
assert_(header_re.search(name), "Bad header name: %r" % name)

0 commit comments

Comments
 (0)
0