]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Whitespace normalization.
authorTim Peters <tim.peters@gmail.com>
Fri, 9 Jun 2006 17:47:00 +0000 (17:47 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 9 Jun 2006 17:47:00 +0000 (17:47 +0000)
Lib/wsgiref/handlers.py
Lib/wsgiref/headers.py
Lib/wsgiref/simple_server.py
Lib/wsgiref/util.py
Lib/wsgiref/validate.py

index 52771a2562cf5bff811497d38812202b820cbdd6..22e7317384c5461224a710f711bdf5b2eddd5b24 100644 (file)
@@ -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
         )
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
index fa9b829230b0067141ebb7a6f021164c1b04dbae..f1ebb03cb0daab6d1fa63ed7a2a2bf646180514c 100644 (file)
@@ -187,19 +187,3 @@ class Headers:
             else:
                 parts.append(_formatparam(k.replace('_', '-'), v))
         self._headers.append((_name, "; ".join(parts)))
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
index e171686fc078e6e007c260e88e27ee814d5ca790..1a892da5b74ca3b5695e16c1aca9c3821cea6a81 100644 (file)
@@ -191,15 +191,3 @@ if __name__ == '__main__':
     import webbrowser
     webbrowser.open('http://localhost:8000/xyz?abc')
     httpd.handle_request()  # serve one request, then exit
-
-
-
-
-
-
-
-
-
-
-
-
index 78ebb3b2c6dcbcac6f8e15155955bb2f38835acf..3a810302333b43bc591c7c0b553f5f15ec32e329 100644 (file)
@@ -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())
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
index e72c507024ce21769471cdb311f1127d1793ba65..934822b30fb86e5a9715e400fc052ddb44b6e68d 100644 (file)
@@ -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.")
-