Skip to content

bpo-29204: Emit warnings for already deprecated ElementTree features. #773

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

Merged
merged 3 commits into from
Mar 30, 2017

Conversation

serhiy-storchaka
Copy link
Member

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

Element.getiterator() and the html parameter of XMLParser() were
deprecated only in the documentation.  Now using them emits a deprecation
warning.
@serhiy-storchaka serhiy-storchaka added the type-feature A feature request or enhancement label Mar 22, 2017
@mention-bot
Copy link

@serhiy-storchaka, thanks for your PR! By analyzing the history of the files in this pull request, we identified @benjaminp, @eliben and @florentx to be potential reviewers.

@@ -1,14 +1,15 @@
# xml.etree test for cElementTree
import struct
from test import support
from test.support import import_fresh_module
from test.support import import_fresh_module, check_warnings
Copy link
Member

Choose a reason for hiding this comment

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

Probably don’t need check_warnings any more

@serhiy-storchaka serhiy-storchaka merged commit 762ec97 into python:master Mar 30, 2017
@serhiy-storchaka serhiy-storchaka deleted the etree-deprecate branch March 30, 2017 15:12
Carreau added a commit to Carreau/cpython that referenced this pull request May 11, 2018
Warning were added in pythongh-773, but did not contain version since
deprecation.
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.

5 participants