added XMLParser alias for cElementTree compatibility
This commit is contained in:
parent
fc34f6c3f7
commit
bf84e54078
|
@ -84,7 +84,7 @@ __all__ = [
|
|||
"tostring",
|
||||
"TreeBuilder",
|
||||
"VERSION", "XML",
|
||||
"XMLTreeBuilder",
|
||||
"XMLParser", "XMLTreeBuilder",
|
||||
]
|
||||
|
||||
##
|
||||
|
@ -1255,3 +1255,6 @@ class XMLTreeBuilder:
|
|||
tree = self._target.close()
|
||||
del self._target, self._parser # get rid of circular references
|
||||
return tree
|
||||
|
||||
# compatibility
|
||||
XMLParser = XMLTreeBuilder
|
||||
|
|
Loading…
Reference in New Issue