summaryrefslogtreecommitdiffstats
path: root/Lib/xmlcore
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2006-07-06 12:29:24 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2006-07-06 12:29:24 (GMT)
commitbf84e54078bc443ae7eb14054f83bf686582dda5 (patch)
tree99120bb057fb4a3911726c322c8610de6ba52b77 /Lib/xmlcore
parentfc34f6c3f795be0b8d409e26976b1f2c464c7ac0 (diff)
downloadcpython-bf84e54078bc443ae7eb14054f83bf686582dda5.zip
cpython-bf84e54078bc443ae7eb14054f83bf686582dda5.tar.gz
cpython-bf84e54078bc443ae7eb14054f83bf686582dda5.tar.bz2
added XMLParser alias for cElementTree compatibility
Diffstat (limited to 'Lib/xmlcore')
-rw-r--r--Lib/xmlcore/etree/ElementTree.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/xmlcore/etree/ElementTree.py b/Lib/xmlcore/etree/ElementTree.py
index b39760ea..bc43347 100644
--- a/Lib/xmlcore/etree/ElementTree.py
+++ b/Lib/xmlcore/etree/ElementTree.py
@@ -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