cElementTree has been deprecated since Python 3.3 and removed in Python 3.9.

This commit is contained in:
Karthikeyan Singaravelan
2020-03-28 04:42:23 +00:00
parent 115c234527
commit 7218bb4499
3 changed files with 5 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ hides namespaces when able and does not introduce excessive namespace
prefixes::
>>> from slixmpp.xmlstream.tostring import tostring
>>> from xml.etree import cElementTree as ET
>>> from xml.etree import ElementTree as ET
>>> xml = ET.fromstring('<foo xmlns="bar"><baz /></foo>')
>>> ET.tostring(xml)
'<ns0:foo xmlns:ns0="bar"><ns0:baz /></foo>'