Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | remove duplicate method (closes #19127) | Benjamin Peterson | 2013-09-29 | 1 | -3/+0 |
| | |||||
* | #18741: fix more typos. Patch by Févry Thibault. | Ezio Melotti | 2013-08-17 | 1 | -1/+1 |
| | |||||
* | Issue #17011: Fix caching of xpath path when namespaces are present. | Eli Bendersky | 2013-08-04 | 1 | -2/+4 |
| | | | | Thanks to Stefan Behnel for the report and proposed solution & test. | ||||
* | Issue #18347: ElementTree's html serializer now preserves the case of ↵ | Christian Heimes | 2013-07-04 | 1 | -3/+3 |
| | | | | closing tags. | ||||
* | Issue #17606: Fixed support of encoded byte strings in the XMLGenerator | Serhiy Storchaka | 2013-05-12 | 1 | -0/+4 |
| | | | | | characters() and ignorableWhitespace() methods. Original patch by Sebastian Ortiz Vasquez. | ||||
* | merge with 3.2 | Georg Brandl | 2013-05-12 | 1 | -0/+5 |
|\ | |||||
| * | Issue #17915: Fix interoperability of xml.sax with file objects returned by | Georg Brandl | 2013-05-12 | 1 | -0/+5 |
| | | | | | | | | codecs.open(). | ||||
* | | Issue #11367: fix documentation of some find* methods in ElementTree | Eli Bendersky | 2013-03-12 | 1 | -7/+4 |
|\ \ | |/ | |||||
| * | Issue #11367: fix documentation of some find* methods in ElementTree | Eli Bendersky | 2013-03-12 | 1 | -7/+4 |
| | | |||||
* | | Issue #1470548: XMLGenerator now works with binary output streams. | Serhiy Storchaka | 2013-02-10 | 1 | -21/+46 |
|\ \ | |/ | |||||
| * | Issue #1470548: XMLGenerator now works with binary output streams. | Serhiy Storchaka | 2013-02-10 | 1 | -21/+46 |
| | | |||||
* | | Issue #9708: Fix support for iterparse(parser=...) argument per documentation. | Eli Bendersky | 2013-01-24 | 1 | -3/+16 |
| | | | | | | | | | | When _elementtree is imported, iterparse is redefined as a class and the parser argument was ommitted. Fix this, and add a docstring to the class. | ||||
* | | #11379: merge with 3.2. | Ezio Melotti | 2013-01-22 | 1 | -2/+3 |
|\ \ | |/ | |||||
| * | #11379: rephrase minidom documentation to use the term "minimal" instead of ↵ | Ezio Melotti | 2013-01-22 | 1 | -2/+3 |
| | | | | | | | | "lightweight". Patch by Éric Araujo. | ||||
* | | Describe the default_namespace parameter of ElemetTree.write. | Serhiy Storchaka | 2013-01-13 | 1 | -2/+3 |
|\ \ | |/ | |||||
| * | Describe the default_namespace parameter of ElemetTree.write. | Serhiy Storchaka | 2013-01-13 | 1 | -2/+3 |
| | | |||||
* | | Issue #16714: use 'raise' exceptions, don't 'throw'. | Andrew Svetlov | 2012-12-18 | 2 | -4/+4 |
|\ \ | |/ | | | | | Patch by Serhiy Storchaka. | ||||
| * | Issue #16714: use 'raise' exceptions, don't 'throw'. | Andrew Svetlov | 2012-12-18 | 2 | -4/+4 |
| | | | | | | | | Patch by Serhiy Storchaka. | ||||
* | | Issue #16089: Allow ElementTree.TreeBuilder to work again with a non-Element ↵ | Antoine Pitrou | 2012-10-04 | 1 | -1/+3 |
| | | | | | | | | element_factory (fixes a regression in SimpleTAL). | ||||
* | | #15970: merge with 3.2. | Ezio Melotti | 2012-09-19 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | #15970: xml.etree.ElementTree now serializes correctly the empty HTML ↵ | Ezio Melotti | 2012-09-19 | 1 | -1/+1 |
| | | | | | | | | elements "meta" and "param". | ||||
* | | fix whitespace woes | Eli Bendersky | 2012-07-17 | 1 | -1/+1 |
| | | |||||
* | | Optimize tostringlist by taking the stream class outside the function. It's ↵ | Eli Bendersky | 2012-07-17 | 1 | -13/+19 |
| | | | | | | | | now 2x faster on short calls. Related to #1767933 | ||||
* | | Preserve the invariant tostring(elem) == b''.join(tostringlist(elem)) and ↵ | Eli Bendersky | 2012-07-17 | 1 | -0/+6 |
| | | | | | | | | add a test to make sure it keeps working | ||||
* | | Close #1767933: Badly formed XML using etree and utf-16. Patch by Serhiy ↵ | Eli Bendersky | 2012-07-15 | 1 | -56/+82 |
| | | | | | | | | Storchaka, with some minor fixes by me | ||||
* | | Issue #15296: Fix minidom.toxml/toprettyxml for non-unicode encodings. ↵ | Eli Bendersky | 2012-07-13 | 1 | -10/+12 |
| | | | | | | | | Patch by Serhiy Storchaka, with some minor style adjustments by me. | ||||
* | | Minor refactoring in xml.etree.ElementTree doctype parser. | Florent Xicluna | 2012-07-07 | 1 | -2/+2 |
| | | |||||
* | | Removed _SimpleElementPath and its flaky test. The test monkey-patches the ↵ | Eli Bendersky | 2012-06-15 | 1 | -25/+1 |
| | | | | | | | | module, which causes other failures and fails itself depending on the order tests are run. | ||||
* | | Replace the iter/itertext methods of Element in _elementtree with true C ↵ | Eli Bendersky | 2012-06-15 | 1 | -5/+1 |
| | | | | | | | | | | | | implementations, instead of the bootstrapped Python code. In addition to being cleaner (removing the last remains of the bootstrapping code in _elementtree), this gives a 10x performance boost for iter() on large documents. Also reorganized the tests a bit to be more robust. | ||||
* | | Issue 14814: Add namespaces keyword arg to find(*) methods in _elementtree. | Eli Bendersky | 2012-05-29 | 1 | -0/+3 |
| | | | | | | | | | | Add attrib keyword to Element and SubElement in _elementtree. Patch developed with Ezio Melotti. | ||||
* | | Issue #13782: streamline argument type-checking in ET.Element | Eli Bendersky | 2012-03-23 | 1 | -4/+8 |
| | | | | | | | | | | | | | | | | append, extend and insert now consistently type-check their argument in both the C and Python implementations, and raise TypeError for non-Element argument. Added tests | ||||
* | | xml.dom.minidom: add more __slots__ to limit resource usage. | Florent Xicluna | 2012-03-05 | 2 | -6/+8 |
| | | |||||
* | | xml.dom: fix typo, drop unused imports. | Florent Xicluna | 2012-03-05 | 2 | -5/+1 |
| | | |||||
* | | Flatten nested try ... finally, try ... except. | Florent Xicluna | 2012-03-05 | 1 | -6/+5 |
| | | |||||
* | | Issue #14007: accept incomplete TreeBuilder objects (missing ↵ | Florent Xicluna | 2012-03-05 | 1 | -41/+40 |
| | | | | | | | | start/end/data/close) for the Python implementation as well. Add disabled tests for the doctype() method. | ||||
* | | Issue #14168: Check for presence of _attrs before accessing it. | Martin v. Löwis | 2012-03-05 | 1 | -0/+4 |
| | | |||||
* | | Issue #14128: Exposing Element as an actual type from _elementtree, rather ↵ | Eli Bendersky | 2012-03-04 | 1 | -1/+0 |
| | | | | | | | | | | | | | | | | than a factory function. This makes the C implementation more aligned with the Python implementation. Also added some tests to ensure that Element is now a type and that it can be subclassed. | ||||
* | | Create _attr/_attrNS lazily. | Martin v. Löwis | 2012-02-19 | 2 | -9/+34 |
| | | |||||
* | | Use __slots__ throughout instead of __dict__, to reduce the memory usage. | Martin v. Löwis | 2012-02-19 | 2 | -141/+114 |
| | | |||||
* | | fix the _namespace_map cleanup for cElementTree tests. | Florent Xicluna | 2012-02-16 | 1 | -0/+2 |
| | | |||||
* | | Issue #13988: cElementTree is deprecated and the _elementtree accelerator is ↵ | Florent Xicluna | 2012-02-13 | 2 | -156/+88 |
| | | | | | | | | automatically used whenever available. | ||||
* | | Issue #13988: move the python bootstrap code to cElementTree.py, and remove ↵ | Florent Xicluna | 2012-02-11 | 1 | -0/+150 |
| | | | | | | | | obsolete code for Python 2.4 and 2.5. | ||||
* | | Fix imports in xml.dom. | Florent Xicluna | 2011-12-10 | 1 | -5/+1 |
| | | |||||
* | | #4147: merge with 3.2. | Ezio Melotti | 2011-11-18 | 1 | -5/+9 |
|\ \ | |/ | |||||
| * | #4147: minidom's toprettyxml no longer adds whitespace around a text node ↵ | Ezio Melotti | 2011-11-18 | 1 | -5/+9 |
| | | | | | | | | when it is the only child of an element. Initial patch by Dan Kenigsberg. | ||||
* | | Merge 3.2: issue #2892 | Florent Xicluna | 2011-11-01 | 1 | -15/+23 |
|\ \ | |/ | |||||
| * | Closes #2892: preserve iterparse events in case of SyntaxError. | Florent Xicluna | 2011-11-01 | 1 | -15/+23 |
| | | |||||
* | | merge #4147: minidom's toprettyxml no longer adds whitespace to text nodes. | R David Murray | 2011-10-01 | 1 | -2/+4 |
|\ \ | |/ | |||||
| * | #4147: minidom's toprettyxml no longer adds whitespace to text nodes. | R David Murray | 2011-10-01 | 1 | -2/+4 |
| | | | | | | | | Patch by Dan Kenigsberg. | ||||
* | | (merge 3.2) Issue #12451: xml.dom.pulldom: parse() now opens files in binary | Victor Stinner | 2011-07-03 | 1 | -1/+1 |
|\ \ | |/ | | | | | | | mode instead of the text mode (using the locale encoding) to avoid encoding issues. |