Message290846
| Author |
serhiy.storchaka |
| Recipients |
eli.bendersky, scoder, serhiy.storchaka |
| Date |
2017年03月30日.15:03:07 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1490886187.9.0.0310872110299.issue29948@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
DeprecationWarning is emitted when parse ElementTree with a doctype in 2.7.
$ python2.7 -Wa
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import xml.etree.ElementTree as ET
>>> ET.XML('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>text</html>')
/usr/lib/python2.7/xml/etree/ElementTree.py:1638: DeprecationWarning: This method of XMLParser is deprecated. Define doctype() method on the TreeBuilder target.
DeprecationWarning,
/usr/lib/python2.7/xml/etree/ElementTree.py:1638: DeprecationWarning: This method of XMLParser is deprecated. Define doctype() method on the TreeBuilder target.
DeprecationWarning,
<Element 'html' at 0xb7025b4c> |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年03月30日 15:03:07 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, scoder, eli.bendersky |
| 2017年03月30日 15:03:07 | serhiy.storchaka | set | messageid: <1490886187.9.0.0310872110299.issue29948@psf.upfronthosting.co.za> |
| 2017年03月30日 15:03:07 | serhiy.storchaka | link | issue29948 messages |
| 2017年03月30日 15:03:07 | serhiy.storchaka | create |
|