def _run_wsgiref(app, config, mode):
<EOL>from wsgiref.simple_server import make_server, software_version<EOL>version = "<STR_LIT>".format(__version__, software_version)<EOL>_logger.info("<STR_LIT>".format(version))<EOL>_logger.warning(<EOL>"<STR_LIT>"<EOL>)<EOL>httpd = make_server(config["<STR_LIT:host>"], config["<STR_LIT:port>"], app)<EOL>try:<EOL><INDENT>httpd.serve_forever()<EOL><DEDENT>except KeyboardInterrupt:<EOL><INDENT>_logger.warning("<STR_LIT>")<EOL><DEDENT>return<EOL>
Run WsgiDAV using wsgiref.simple_server, on Python 2.5+.