diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2006-07-06 12:29:24 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2006-07-06 12:29:24 (GMT) |
commit | bf84e54078bc443ae7eb14054f83bf686582dda5 (patch) | |
tree | 99120bb057fb4a3911726c322c8610de6ba52b77 /Lib/xmlcore | |
parent | fc34f6c3f795be0b8d409e26976b1f2c464c7ac0 (diff) | |
download | cpython-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.py | 5 |
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 |