[proxy] web.archive.org← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light
/ cpython Public
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-29209: Remove old-deprecated features in ElementTree. #6769

Merged

Conversation

Copy link
Member

serhiy-storchaka commented May 12, 2018

Also make getchildren() and getiterator() emitting a DeprecationWarning instead of PendingDeprecationWarning.

https://bugs.python.org/issue29209

Also make getchildren() and getiterator() emitting
a DeprecationWarning instead of PendingDeprecationWarning.
warnings.warn(
"This method will be removed in future versions. "
"Use 'tree.iter()' or 'list(tree.iter())' instead.",
PendingDeprecationWarning, stacklevel=2
DeprecationWarning, stacklevel=2
Copy link
Contributor

Carreau May 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to update the messages to have the version since the deprecation and the planned removal version here (and on line 418) ?

Copy link
Member Author

serhiy-storchaka Jul 24, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is in the documentation.

warnings.warn(
"The doctype() method of XMLParser is ignored. "
"Define doctype() method on the TreeBuilder target.",
RuntimeWarning)
Copy link
Contributor

Carreau May 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here add versions ?

serhiy-storchaka merged commit 02ec92f into python:master Jul 24, 2018
serhiy-storchaka deleted the etree-remove-deprecated branch Jul 24, 2018
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Jul 25, 2018
yahya-abou-imran pushed a commit to yahya-abou-imran/cpython that referenced this pull request Nov 2, 2018
)

Also make getchildren() and getiterator() emitting
a DeprecationWarning instead of PendingDeprecationWarning.
yahya-abou-imran pushed a commit to yahya-abou-imran/cpython that referenced this pull request Nov 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants