Examples/modpython_dbg.py@6fa22aa4fc4a
Examples/modpython_dbg.py
Mon, 12 Apr 2021 19:25:18 +0200
- author
- Detlev Offenbach <detlev@die-offenbachs.de>
- date
- Mon, 12 Apr 2021 19:25:18 +0200
- changeset 8229
- 6fa22aa4fc4a
- parent 0
-
de9c2efb9d02
- permissions
- -rw-r--r--
Applied some more code simplifications suggested by the new Simplify checker (Y102: use single if) (batch 2+).
from mod_python import apache
apache.initDebugger('/Path/To/modpython_dbg.py')
def handler(req):
req.content_type = "text/plain"
req.send_http_header()
req.write("Hello World!\n")
return apache.OK