]> granicus.if.org Git - python/commit
bpo-29204: Emit warnings for already deprecated ElementTree features. (#773)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 30 Mar 2017 15:12:06 +0000 (18:12 +0300)
committerGitHub <noreply@github.com>
Thu, 30 Mar 2017 15:12:06 +0000 (18:12 +0300)
commit762ec97ea68a1126b8855996c61fa8239dc9fff7
tree8addf50d8a5ed50492790532396b08d1d25737bd
parent722a3af092b94983aa26f5e591fb1b45e2c2a0ff
bpo-29204: Emit warnings for already deprecated ElementTree features. (#773)

Element.getiterator() and the html parameter of XMLParser() were
deprecated only in the documentation (since Python 3.2 and 3.4 correspondintly).
Now using them emits a deprecation warning.

* Don’t need check_warnings any more.
Lib/test/test_xml_etree.py
Lib/test/test_xml_etree_c.py
Lib/xml/etree/ElementTree.py
Misc/NEWS
Modules/_elementtree.c
Modules/clinic/_elementtree.c.h