Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAvoid cElementTree on Python 3 #494
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 |


cElementTreehas been deprecated since 3.3, and is simply an alias toElementTreeright now. It will be removed in the Python 3.10.Originally filed as: pypa/pip#8278
See also: python/cpython#19921