Note that this utility does not guarantee complete PEP 333 compliance; an absence of errors from this module does not necessarily mean that errors do not exist. However, if this module does produce an error, then it is virtually certain that either the server or application is not 100% compliant.
This module is based on the paste.lint module from Ian Bicking's ``Python Paste'' library.
application) |
Any detected nonconformance results in an AssertionError
being raised; note, however, that how these errors are handled is
server-dependent. For example, wsgiref.simple_server and other
servers based on wsgiref.handlers (that don't override the
error handling methods to do something else) will simply output a
message that an error has occurred, and dump the traceback to
sys.stderr
or some other error stream.
This wrapper may also generate output using the warnings module
to indicate behaviors that are questionable but which may not actually
be prohibited by PEP 333. Unless they are suppressed using Python
command-line options or the warnings API, any such warnings
will be written to sys.stderr
(not wsgi.errors
,
unless they happen to be the same object).