Also make getchildren() and getiterator() emitting a DeprecationWarning instead of PendingDeprecationWarning.
37b9b3b to
3207edc
Compare
| "This method will be removed in future versions. " | ||
| "Use 'tree.iter()' or 'list(tree.iter())' instead.", | ||
| PendingDeprecationWarning, stacklevel=2 | ||
| DeprecationWarning, stacklevel=2 |
There was a problem hiding this comment.
Do you want to update the messages to have the version since the deprecation and the planned removal version here (and on line 418) ?
There was a problem hiding this comment.
It is in the documentation.
| warnings.warn( | ||
| "The doctype() method of XMLParser is ignored. " | ||
| "Define doctype() method on the TreeBuilder target.", | ||
| RuntimeWarning) |
Also make getchildren() and getiterator() emitting a DeprecationWarning instead of PendingDeprecationWarning.
https://bugs.python.org/issue29209