Message158009
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. |
|
Date |
User |
Action |
Args |
2012-04-11 06:01:21 | ezio.melotti | set | recipients:
+ ezio.melotti, chris.jerdonek, docs@python |
2012-04-11 06:01:21 | ezio.melotti | set | messageid: <1334124081.69.0.648927886112.issue14545@psf.upfronthosting.co.za> |
2012-04-11 06:01:20 | ezio.melotti | link | issue14545 messages |
2012-04-11 06:01:20 | ezio.melotti | create | |
|