Examples/modpython.py@79b58173f803
Examples/modpython.py
Sat, 21 Jun 2014 18:11:38 +0200
- author
- Detlev Offenbach <detlev@die-offenbachs.de>
- date
- Sat, 21 Jun 2014 18:11:38 +0200
- branch
- 5_4_x
- changeset 3645
- 79b58173f803
- parent 0
-
de9c2efb9d02
- permissions
- -rw-r--r--
Fixed an issue in the naming style checker caused by AST changes in Python 3.4.
from mod_python import apache
def handler(req):
req.content_type = "text/plain"
req.send_http_header()
req.write("Hello World!\n")
return apache.OK