summaryrefslogtreecommitdiffstats
path: root/Lib/wsgiref/simple_server.py
diff options
context:
space:
mode:
authorPhillip J. Eby <pje@telecommunity.com>2010-11-03 00:46:45 (GMT)
committerPhillip J. Eby <pje@telecommunity.com>2010-11-03 00:46:45 (GMT)
commita01799f71a3b5b24a1e2ab183c872d1f311e22ec (patch)
tree1f92420327e2ee41e4b1be077b07fe5f5e9df165 /Lib/wsgiref/simple_server.py
parent0d1b38cef942c9e5d1ac9452eef34042ccfa4c28 (diff)
downloadcpython-a01799f71a3b5b24a1e2ab183c872d1f311e22ec.zip
cpython-a01799f71a3b5b24a1e2ab183c872d1f311e22ec.tar.gz
cpython-a01799f71a3b5b24a1e2ab183c872d1f311e22ec.tar.bz2
Update docs (and sample app in wsgiref.simple_server) to reflect PEP 3333.
Diffstat (limited to 'Lib/wsgiref/simple_server.py')
-rw-r--r--Lib/wsgiref/simple_server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/wsgiref/simple_server.py b/Lib/wsgiref/simple_server.py
index 231dc57..550f4d8 100644
--- a/Lib/wsgiref/simple_server.py
+++ b/Lib/wsgiref/simple_server.py
@@ -1,4 +1,4 @@
-"""BaseHTTPServer that implements the Python WSGI protocol (PEP 333, rev 1.21)
+"""BaseHTTPServer that implements the Python WSGI protocol (PEP 3333)
This is both an example of how WSGI can be implemented, and a basis for running
simple web applications on a local machine, such as might be done when testing
@@ -133,7 +133,7 @@ def demo_app(environ,start_response):
h = sorted(environ.items())
for k,v in h:
print(k,'=',repr(v), file=stdout)
- start_response(b"200 OK", [(b'Content-Type',b'text/plain; charset=utf-8')])
+ start_response("200 OK", [('Content-Type','text/plain; charset=utf-8')])
return [stdout.getvalue().encode("utf-8")]