diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-04-21 15:26:47 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-04-21 15:26:47 +0200 |
commit | 04ecd5542849191457ccfc3e42a39452db47825a (patch) | |
tree | b0a470e46326b709d090a900847bbb004d355607 /paste/wsgilib.py | |
parent | 4c177fce89fee925f0f4fbfde00ce2e1252562c0 (diff) | |
download | paste-04ecd5542849191457ccfc3e42a39452db47825a.tar.gz |
Strip trailing spaces
Diffstat (limited to 'paste/wsgilib.py')
-rw-r--r-- | paste/wsgilib.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/paste/wsgilib.py b/paste/wsgilib.py index 1234ef9..73ed4d3 100644 --- a/paste/wsgilib.py +++ b/paste/wsgilib.py @@ -289,7 +289,7 @@ def raw_interactive(application, path='', raise_on_wsgi_error=False, 'SCRIPT_NAME': '', # may be empty if app is at the root 'PATH_INFO': '', # may be empty if at root of app 'SERVER_NAME': 'localhost', # always mandatory - 'SERVER_PORT': '80', # always mandatory + 'SERVER_PORT': '80', # always mandatory 'SERVER_PROTOCOL': 'HTTP/1.0', # mandatory wsgi variables 'wsgi.version': (1, 0), @@ -435,7 +435,7 @@ def capture_output(environ, start_response, application): Sends status and header, but *not* body. Returns (status, headers, body). Typically this is used like: - + .. code-block:: python def dehtmlifying_middleware(application): @@ -486,7 +486,7 @@ def intercept_output(environ, application, conditional=None, ``capture_output``) Typically this is used like: - + .. code-block:: python def dehtmlifying_middleware(application): @@ -508,7 +508,7 @@ def intercept_output(environ, application, conditional=None, ``start_response`` will be called and ``(None, None, app_iter)`` will be returned. You must detect that in your code and return the app_iter, like: - + .. code-block:: python def dehtmlifying_middleware(application): @@ -593,4 +593,4 @@ for _name in __all__: if __name__ == '__main__': import doctest doctest.testmod() - + |