summaryrefslogtreecommitdiff
path: root/Lib/wsgiref
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-06-09 17:47:00 +0000
committerTim Peters <tim.peters@gmail.com>2006-06-09 17:47:00 +0000
commit7de510043850a6c883e948030c780beb1900ef9d (patch)
tree17d7c31b901dc3217ea9b592c79d04dd95ba1aa2 /Lib/wsgiref
parent2084d0b9294a20360e01f7285bd6671d8395341f (diff)
downloadcpython-7de510043850a6c883e948030c780beb1900ef9d.tar.gz
Whitespace normalization.
Diffstat (limited to 'Lib/wsgiref')
-rw-r--r--Lib/wsgiref/handlers.py19
-rw-r--r--Lib/wsgiref/headers.py16
-rw-r--r--Lib/wsgiref/simple_server.py12
-rw-r--r--Lib/wsgiref/util.py36
-rw-r--r--Lib/wsgiref/validate.py1
5 files changed, 3 insertions, 81 deletions
diff --git a/Lib/wsgiref/handlers.py b/Lib/wsgiref/handlers.py
index 52771a2562..22e7317384 100644
--- a/Lib/wsgiref/handlers.py
+++ b/Lib/wsgiref/handlers.py
@@ -209,7 +209,7 @@ class BaseHandler:
assert type(data) is StringType,"write() argument must be string"
if not self.status:
- raise AssertionError("write() before start_response()")
+ raise AssertionError("write() before start_response()")
elif not self.headers_sent:
# Before the first output, send the stored headers
@@ -473,20 +473,3 @@ class CGIHandler(BaseCGIHandler):
self, sys.stdin, sys.stdout, sys.stderr, dict(os.environ.items()),
multithread=False, multiprocess=True
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Lib/wsgiref/headers.py b/Lib/wsgiref/headers.py
index fa9b829230..f1ebb03cb0 100644
--- a/Lib/wsgiref/headers.py
+++ b/Lib/wsgiref/headers.py
@@ -187,19 +187,3 @@ class Headers:
else:
parts.append(_formatparam(k.replace('_', '-'), v))
self._headers.append((_name, "; ".join(parts)))
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Lib/wsgiref/simple_server.py b/Lib/wsgiref/simple_server.py
index e171686fc0..1a892da5b7 100644
--- a/Lib/wsgiref/simple_server.py
+++ b/Lib/wsgiref/simple_server.py
@@ -191,15 +191,3 @@ if __name__ == '__main__':
import webbrowser
webbrowser.open('http://localhost:8000/xyz?abc')
httpd.handle_request() # serve one request, then exit
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Lib/wsgiref/util.py b/Lib/wsgiref/util.py
index 78ebb3b2c6..3a81030233 100644
--- a/Lib/wsgiref/util.py
+++ b/Lib/wsgiref/util.py
@@ -59,10 +59,10 @@ def application_uri(environ):
if environ['wsgi.url_scheme'] == 'https':
if environ['SERVER_PORT'] != '443':
- url += ':' + environ['SERVER_PORT']
+ url += ':' + environ['SERVER_PORT']
else:
if environ['SERVER_PORT'] != '80':
- url += ':' + environ['SERVER_PORT']
+ url += ':' + environ['SERVER_PORT']
url += quote(environ.get('SCRIPT_NAME') or '/')
return url
@@ -171,35 +171,3 @@ _hoppish = {
def is_hop_by_hop(header_name):
"""Return true if 'header_name' is an HTTP/1.1 "Hop-by-Hop" header"""
return _hoppish(header_name.lower())
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Lib/wsgiref/validate.py b/Lib/wsgiref/validate.py
index e72c507024..934822b30f 100644
--- a/Lib/wsgiref/validate.py
+++ b/Lib/wsgiref/validate.py
@@ -426,4 +426,3 @@ def check_iterator(iterator):
assert not isinstance(iterator, str), (
"You should not return a string as your application iterator, "
"instead return a single-item list containing that string.")
-