added XMLParser alias for cElementTree compatibility

This commit is contained in:
Fredrik Lundh 2006-07-06 12:29:24 +00:00
parent fc34f6c3f7
commit bf84e54078
1 changed files with 4 additions and 1 deletions

View File

@ -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