From: <zy...@us...> - 2008-12-30 03:54:09
|
Revision: 5814 http://jython.svn.sourceforge.net/jython/?rev=5814&view=rev Author: zyasoft Date: 2008-12-30 03:53:59 +0000 (Tue, 30 Dec 2008) Log Message: ----------- Added a shim for xml.etree.cElementTree such that it just pulls in the entire namespace of ElementTree. This is for code that expects cElementTree is available if ET is part of a Python's stdlib. This enables soaplib's unit tests to all pass (assuming a patch for #1191). Added Paths: ----------- trunk/jython/Lib/xml/etree/ trunk/jython/Lib/xml/etree/cElementTree.py Added: trunk/jython/Lib/xml/etree/cElementTree.py =================================================================== --- trunk/jython/Lib/xml/etree/cElementTree.py (rev 0) +++ trunk/jython/Lib/xml/etree/cElementTree.py 2008-12-30 03:53:59 UTC (rev 5814) @@ -0,0 +1,10 @@ +# make an exact copy of ElementTree's namespace here to support even +# private API usage +from xml.etree.ElementTree import ( + Comment, Element, ElementPath, ElementTree, PI, ProcessingInstruction, + QName, SubElement, TreeBuilder, VERSION, XML, XMLID, XMLParser, + XMLTreeBuilder, _Element, _ElementInterface, _SimpleElementPath, + __all__, __doc__, __file__, __name__, _encode, _encode_entity, + _escape, _escape_attrib, _escape_cdata, _escape_map, _namespace_map, + _raise_serialization_error, dump, fixtag, fromstring, iselement, + iterparse, parse, re, string, sys, tostring) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |