summaryrefslogtreecommitdiff
path: root/paste/modpython.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/modpython.py
parente944374d649a29449b4a3266a485eb5ca31ecf78 (diff)
downloadpaste-7e3e549af3852c87697885df4b60daa8b63b370f.tar.gz
Adding code-block directive to Python code samples.
Diffstat (limited to 'paste/modpython.py')
-rw-r--r--paste/modpython.py8
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):