From 7e3e549af3852c87697885df4b60daa8b63b370f Mon Sep 17 00:00:00 2001 From: bbangert Date: Sat, 2 Sep 2006 23:40:11 +0000 Subject: Adding code-block directive to Python code samples. --- paste/modpython.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'paste/modpython.py') 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): -- cgit v1.2.1