[issue2001] Pydoc interactive browsing enhancement
Ron Adam
report at bugs.python.org
Sun Nov 21 08:18:22 CET 2010
Ron Adam <ron_adam at users.sourceforge.net> added the comment:
Here is the latest patch with tests.
In order to test the html pages I separated out the URL handler. So now we have three new functions.
pydoc._start_server(urlhandler, port)
pydoc._url_handler(url, content_type="text/html")
pydoc.browse(port=0, *, open_browser=True)
A css file: pydoc_data/_pydoc.css
The tests in test_pydoc.py, test that the server can be started and shutdown without an error. And test that the _url_handler() will send back html pages with the correct title for all the different type of requests that it can handle.
I think this is ready for a final review now.
----------
Added file: http://bugs.python.org/file19727/issue2001_f.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2001>
_______________________________________
More information about the Python-bugs-list
mailing list