[issue10818] pydoc: refactorize duplicate DocHandler and DocServer classes

New submission from STINNER Victor victor.stinner@haypocalc.com:
The pydoc module has two DocHandler classes and two DocServer classes. I think that they can be easily factorized.
DocServer may also use serve_forever()+shutdown() instead of serve_until_quit()+quit flag, to be able to wait the server (with shutdown()).
---------- assignee: docs@python components: Documentation, Library (Lib) messages: 125190 nosy: docs@python, haypo priority: normal severity: normal status: open title: pydoc: refactorize duplicate DocHandler and DocServer classes versions: Python 3.2, Python 3.3
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue10818 _______________________________________

STINNER Victor victor.stinner@haypocalc.com added the comment:
I opened this issue because I had to fix a bug twice in pydoc: r87687 (fix a ResourceWarning(unclosed socket)).
----------
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue10818 _______________________________________
participants (1)
-
STINNER Victor