Message285000
| Author |
serhiy.storchaka |
| Recipients |
eli.bendersky, ned.deily, scoder, serhiy.storchaka |
| Date |
2017-01-08.17:56:23 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1483898185.03.0.0187159979308.issue29209@psf.upfronthosting.co.za> |
| In-reply-to |
|
| Content |
Proposed patch removes old-deprecated ElementTree features.
* Methods Element.getchildren(), Element.getiterator() and ElementTree.getiterator() deprecated in 2.7 and 3.2.
Use list(elem) or iteration instead of getchildren(), methods iter() instead of getiterator().
* The html argument of XMLParser deprecated in 3.4.
The rest of arguments are keyword-only now (passing them as keywords was recommended in the documentatin).
* The support of the doctype() method of XMLParser subclasses and its default implementation. Deprecated in 3.2. Define the doctype() method on a custom TreeBuilder target instead.
* The xml.etree.cElementTree module deprecated in 3.3.
Unfortunately some of these deprecations are in the documentation only or in Python implementatation, but not in C implementatation. Perhaps missed warnings should be added first (see issue29204). But if commit the patch from issue29204 in 3.6, perhaps deprecated features could be removed in 3.7. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017-01-08 17:56:27 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, scoder, ned.deily, eli.bendersky |
| 2017-01-08 17:56:25 | serhiy.storchaka | set | messageid: <1483898185.03.0.0187159979308.issue29209@psf.upfronthosting.co.za> |
| 2017-01-08 17:56:24 | serhiy.storchaka | link | issue29209 messages |
| 2017-01-08 17:56:24 | serhiy.storchaka | create | |
|