import sys, ashd.wsgiutil def application(env, startreq): startreq("200 OK", [("Content-Type", "text/html")]) # Note that WSGI 3 requires returned data to be bytes, not strings. yield b"\n" yield b"
This example does nothing in particular except demonstrating " yield b"that there is support for Python3 as well.
\n" yield b"The current Python interpreter is " + ashd.wsgiutil.htmlquote(sys.version).encode("utf-8") + b"
.