Ezio Melotti <ezio.melo...@gmail.com> added the comment:

The doc for the html module was added in 5633af590057 (see #2830) and it was 
previously undocumented even if it was importable.  Moving the versionadded 
under html.escape sounds good to me.

As a side note, it would be better to do

try:
    # Python 3.2 deprecates cgi.escape() and adds html.escape() as a 
replacement.
    from html import escape
except ImportError:
    from cgi import escape

rather than importing the whole cgi module as "html" just to use the escape 
function.

----------
assignee:  -> docs@python
components: +Documentation -None
keywords: +easy
nosy: +docs@python, ezio.melotti
stage:  -> needs patch
versions: +Python 3.2, Python 3.3 -Python 3.1

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14545>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to