Message158009
| 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: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 |
|