summaryrefslogtreecommitdiff
path: root/paste/wsgilib.py
diff options
context:
space:
mode:
authorbbangert <devnull@localhost>2006-09-02 23:40:11 +0000
committerbbangert <devnull@localhost>2006-09-02 23:40:11 +0000
commit7e3e549af3852c87697885df4b60daa8b63b370f (patch)
tree720145c564522be8df81c74e4943ce685b94dd7c /paste/wsgilib.py
parente944374d649a29449b4a3266a485eb5ca31ecf78 (diff)
downloadpaste-7e3e549af3852c87697885df4b60daa8b63b370f.tar.gz
Adding code-block directive to Python code samples.
Diffstat (limited to 'paste/wsgilib.py')
-rw-r--r--paste/wsgilib.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/paste/wsgilib.py b/paste/wsgilib.py
index 5223631..b2e8c68 100644
--- a/paste/wsgilib.py
+++ b/paste/wsgilib.py
@@ -414,7 +414,9 @@ def capture_output(environ, start_response, application):
status, headers, and body.
Sends status and header, but *not* body. Returns (status,
- headers, body). Typically this is used like::
+ headers, body). Typically this is used like:
+
+ ..code-block:: Python
def dehtmlifying_middleware(application):
def replacement_app(environ, start_response):
@@ -462,7 +464,9 @@ def intercept_output(environ, application, conditional=None,
body. None are sent on; you must send them on yourself (unlike
``capture_output``)
- Typically this is used like::
+ Typically this is used like:
+
+ ..code-block:: Python
def dehtmlifying_middleware(application):
def replacement_app(environ, start_response):
@@ -481,7 +485,9 @@ def intercept_output(environ, application, conditional=None,
the request should not be intercepted. In that case
``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::
+ the app_iter, like:
+
+ ..code-block:: Python
def dehtmlifying_middleware(application):
def replacement_app(environ, start_response):