[Python-checkins] r47269 - python/trunk/Lib/xmlcore/etree/ElementTree.py
fredrik.lundh
python-checkins at python.org
Thu Jul 6 14:29:24 CEST 2006
Author: fredrik.lundh
Date: Thu Jul 6 14:29:24 2006
New Revision: 47269
Modified:
python/trunk/Lib/xmlcore/etree/ElementTree.py
Log:
added XMLParser alias for cElementTree compatibility
Modified: python/trunk/Lib/xmlcore/etree/ElementTree.py
==============================================================================
--- python/trunk/Lib/xmlcore/etree/ElementTree.py (original)
+++ python/trunk/Lib/xmlcore/etree/ElementTree.py Thu Jul 6 14:29:24 2006
@@ -84,7 +84,7 @@
"tostring",
"TreeBuilder",
"VERSION", "XML",
- "XMLTreeBuilder",
+ "XMLParser", "XMLTreeBuilder",
]
##
@@ -1255,3 +1255,6 @@
tree = self._target.close()
del self._target, self._parser # get rid of circular references
return tree
+
+# compatibility
+XMLParser = XMLTreeBuilder
More information about the Python-checkins
mailing list