The xml.etree.ElementTree.Element.copy() method (Python implementation) was deprecated in Python 3.10 by commit 7d952de: see issue #76605 for the rationale.
The method only exists in the pure Python implementation. The C implementation only has a __copy__() method.
Use copy.copy() instead.
The text was updated successfully, but these errors were encountered:
xml.etree: Remove the ElementTree.Element.copy() method of the pure
Python implementation, deprecated in Python 3.10, use the copy.copy()
function instead. The C implementation of xml.etree has no copy()
method, only a __copy__() method.
vstinner commentedJun 28, 2022
The xml.etree.ElementTree.Element.copy() method (Python implementation) was deprecated in Python 3.10 by commit 7d952de: see issue #76605 for the rationale.
The method only exists in the pure Python implementation. The C implementation only has a
__copy__()
method.Use
copy.copy()
instead.The text was updated successfully, but these errors were encountered: