-
Notifications
You must be signed in to change notification settings - Fork 294
Avoid cElementTree on Python 3 #494
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
Comments
What prompts the desire to avoid it? Avoiding the PendingDeprecationWarning proposed to be added in python/cpython#19921 but not python/cpython#20117? This this causes warnings with the perfectly sane |
cc-ing @tiran since I do not have the knowledge to answer the question myself. |
The removal of cElementTree without a deadline and deprecation warning broke a bunch of packages. I like to re-introduce the module in 3.9 with a warning and remove it in 3.10. The warning is breaking Python's ensurepip tests. Pip depends on html5lib and html5lib triggers the warning. My patch avoids the warning and keeps the behavior of html5lib. If you want a simpler patch, then just import |
cElementTree
has been deprecated since 3.3, and is simply an alias toElementTree
right now. It will be removed in the Python 3.10.Originally filed as: pypa/pip#8278
See also: python/cpython#19921
The text was updated successfully, but these errors were encountered: