This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients chris.jerdonek, docs@python, ezio.melotti
Date 2012-04-11.06:01:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334124081.69.0.648927886112.issue14545@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-04-11 06:01:21ezio.melottisetrecipients: + ezio.melotti, chris.jerdonek, docs@python
2012-04-11 06:01:21ezio.melottisetmessageid: <1334124081.69.0.648927886112.issue14545@psf.upfronthosting.co.za>
2012-04-11 06:01:20ezio.melottilinkissue14545 messages
2012-04-11 06:01:20ezio.melotticreate