[Python-checkins] r46787 - python/trunk/Lib/wsgiref/handlers.py python/trunk/Lib/wsgiref/headers.py python/trunk/Lib/wsgiref/simple_server.py python/trunk/Lib/wsgiref/util.py python/trunk/Lib/wsgiref/validate.py
tim.peters
python-checkins at python.org
Fri Jun 9 19:47:01 CEST 2006
Author: tim.peters
Date: Fri Jun 9 19:47:00 2006
New Revision: 46787
Modified:
python/trunk/Lib/wsgiref/handlers.py
python/trunk/Lib/wsgiref/headers.py
python/trunk/Lib/wsgiref/simple_server.py
python/trunk/Lib/wsgiref/util.py
python/trunk/Lib/wsgiref/validate.py
Log:
Whitespace normalization.
Modified: python/trunk/Lib/wsgiref/handlers.py
==============================================================================
--- python/trunk/Lib/wsgiref/handlers.py (original)
+++ python/trunk/Lib/wsgiref/handlers.py Fri Jun 9 19:47:00 2006
@@ -209,7 +209,7 @@
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 @@
self, sys.stdin, sys.stdout, sys.stderr, dict(os.environ.items()),
multithread=False, multiprocess=True
)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Modified: python/trunk/Lib/wsgiref/headers.py
==============================================================================
--- python/trunk/Lib/wsgiref/headers.py (original)
+++ python/trunk/Lib/wsgiref/headers.py Fri Jun 9 19:47:00 2006
@@ -187,19 +187,3 @@
else:
parts.append(_formatparam(k.replace('_', '-'), v))
self._headers.append((_name, "; ".join(parts)))
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Modified: python/trunk/Lib/wsgiref/simple_server.py
==============================================================================
--- python/trunk/Lib/wsgiref/simple_server.py (original)
+++ python/trunk/Lib/wsgiref/simple_server.py Fri Jun 9 19:47:00 2006
@@ -191,15 +191,3 @@
import webbrowser
webbrowser.open('http://localhost:8000/xyz?abc')
httpd.handle_request() # serve one request, then exit
-
-
-
-
-
-
-
-
-
-
-
-
Modified: python/trunk/Lib/wsgiref/util.py
==============================================================================
--- python/trunk/Lib/wsgiref/util.py (original)
+++ python/trunk/Lib/wsgiref/util.py Fri Jun 9 19:47:00 2006
@@ -59,10 +59,10 @@
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 @@
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())
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Modified: python/trunk/Lib/wsgiref/validate.py
==============================================================================
--- python/trunk/Lib/wsgiref/validate.py (original)
+++ python/trunk/Lib/wsgiref/validate.py Fri Jun 9 19:47:00 2006
@@ -426,4 +426,3 @@
assert not isinstance(iterator, str), (
"You should not return a string as your application iterator, "
"instead return a single-item list containing that string.")
-
More information about the Python-checkins
mailing list