diff options
| author | bbangert <bbangert@localhost> | 2006-09-02 23:40:11 +0000 |
|---|---|---|
| committer | bbangert <bbangert@localhost> | 2006-09-02 23:40:11 +0000 |
| commit | 46eff983009fd9cc464c7e385d08e8a675d30ccf (patch) | |
| tree | 720145c564522be8df81c74e4943ce685b94dd7c /paste/modpython.py | |
| parent | c9277c3c4f4ad4f6f230102be02ec7bb53cfc61b (diff) | |
| download | paste-git-46eff983009fd9cc464c7e385d08e8a675d30ccf.tar.gz | |
Adding code-block directive to Python code samples.
Diffstat (limited to 'paste/modpython.py')
| -rw-r--r-- | paste/modpython.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/paste/modpython.py b/paste/modpython.py index 98bf6f7..1a8bc5c 100644 --- a/paste/modpython.py +++ b/paste/modpython.py @@ -1,5 +1,4 @@ -""" -WSGI Paste wrapper for mod_python. Requires Python 2.2 or greater. +"""WSGI Paste wrapper for mod_python. Requires Python 2.2 or greater. Example httpd.conf section for a Paste app with an ini file:: @@ -53,7 +52,10 @@ http://projects.amor.org/misc/svn/modpython_gateway.py import traceback import os -from mod_python import apache +try: + from mod_python import apache +except: + pass from paste.deploy import loadapp class InputWrapper(object): |
