summaryrefslogtreecommitdiffstats
path: root/Lib/xml
Commit message (Collapse)AuthorAgeFilesLines
* Issue #17516: use comment syntax for comments, instead of multiline stringVictor Stinner2013-03-261-1/+1
|
* Issue #16954: Add docstrings for ElementTreeEli Bendersky2013-03-091-578/+486
| | | | Based on patch by David Lam
* modernize some modules' code by using with statement around open()Giampaolo Rodola'2013-02-121-8/+2
|
* Issue #1470548: XMLGenerator now works with binary output streams.Serhiy Storchaka2013-02-101-21/+46
|\
| * Issue #1470548: XMLGenerator now works with binary output streams.Serhiy Storchaka2013-02-101-21/+46
| |\
| | * Issue #1470548: XMLGenerator now works with binary output streams.Serhiy Storchaka2013-02-101-21/+46
| | |
* | | Issue #9708: Fix support for iterparse(parser=...) argument per documentation.Eli Bendersky2013-01-241-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.
| * | Issue #9708: Fix support for iterparse(parser=...) argument per documentation.Eli Bendersky2013-01-241-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.
* | | Issue #12323: Strengthen error checking of the position XPath selectorsEli Bendersky2013-01-241-2/+7
| | |
* | | #11379: merge with 3.3.Ezio Melotti2013-01-221-2/+3
|\ \ \ | |/ /
| * | #11379: merge with 3.2.Ezio Melotti2013-01-221-2/+3
| |\ \ | | |/
| | * #11379: rephrase minidom documentation to use the term "minimal" instead of ↵Ezio Melotti2013-01-221-2/+3
| | | | | | | | | | | | "lightweight". Patch by Éric Araujo.
* | | Cleanup the docs ElementTree a bit.Serhiy Storchaka2013-01-131-8/+8
|\ \ \ | |/ /
| * | Describe the default_namespace parameter of ElemetTree.write.Serhiy Storchaka2013-01-131-2/+3
| |\ \ | | |/
| | * Describe the default_namespace parameter of ElemetTree.write.Serhiy Storchaka2013-01-131-2/+3
| | |
* | | Cleanup the docs ElementTree a bit and describe the default_namespace ↵Eli Bendersky2013-01-131-14/+14
| | | | | | | | | | | | parameter. In the code, replace the old outdated Doxygen-ish comment above ElementTree.write by a proper docstring.
* | | Close #14377: Add a new parameter to ElementTree.write and some module-levelEli Bendersky2013-01-131-11/+20
| | | | | | | | | | | | | | | | | | | | | serialization functions - short_empty_elements. It controls how elements without contents are emitted. Patch by Serhiy Storchaka. Feature initially proposed by Ariel Poliak.
* | | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-3/+3
| | |
* | | Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-182-4/+4
|\ \ \ | |/ / | | | | | | Patch by Serhiy Storchaka.
| * | Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-182-4/+4
| |\ \ | | |/ | | | | | | Patch by Serhiy Storchaka.
| | * Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-182-4/+4
| | | | | | | | | | | | Patch by Serhiy Storchaka.
* | | Issue #16089: Allow ElementTree.TreeBuilder to work again with a non-Element ↵Antoine Pitrou2012-10-041-1/+3
|\ \ \ | |/ / | | | | | | element_factory (fixes a regression in SimpleTAL).
| * | Issue #16089: Allow ElementTree.TreeBuilder to work again with a non-Element ↵Antoine Pitrou2012-10-041-1/+3
| | | | | | | | | | | | element_factory (fixes a regression in SimpleTAL).
* | | more yield fromPhilip Jenvey2012-10-012-8/+4
|/ / | | | | | | patch by Serhiy Storchaka
* | #15970: merge with 3.2.Ezio Melotti2012-09-191-1/+1
|\ \ | |/
| * #15970: xml.etree.ElementTree now serializes correctly the empty HTML ↵Ezio Melotti2012-09-191-1/+1
| | | | | | | | elements "meta" and "param".
* | fix whitespace woesEli Bendersky2012-07-171-1/+1
| |
* | Optimize tostringlist by taking the stream class outside the function. It's ↵Eli Bendersky2012-07-171-13/+19
| | | | | | | | now 2x faster on short calls. Related to #1767933
* | Preserve the invariant tostring(elem) == b''.join(tostringlist(elem)) and ↵Eli Bendersky2012-07-171-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 Bendersky2012-07-151-56/+82
| | | | | | | | Storchaka, with some minor fixes by me
* | Issue #15296: Fix minidom.toxml/toprettyxml for non-unicode encodings. ↵Eli Bendersky2012-07-131-10/+12
| | | | | | | | Patch by Serhiy Storchaka, with some minor style adjustments by me.
* | Minor refactoring in xml.etree.ElementTree doctype parser.Florent Xicluna2012-07-071-2/+2
| |
* | Removed _SimpleElementPath and its flaky test. The test monkey-patches the ↵Eli Bendersky2012-06-151-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 Bendersky2012-06-151-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 Bendersky2012-05-291-0/+3
| | | | | | | | | | Add attrib keyword to Element and SubElement in _elementtree. Patch developed with Ezio Melotti.
* | Issue #13782: streamline argument type-checking in ET.ElementEli Bendersky2012-03-231-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 Xicluna2012-03-052-6/+8
| |
* | xml.dom: fix typo, drop unused imports.Florent Xicluna2012-03-052-5/+1
| |
* | Flatten nested try ... finally, try ... except.Florent Xicluna2012-03-051-6/+5
| |
* | Issue #14007: accept incomplete TreeBuilder objects (missing ↵Florent Xicluna2012-03-051-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öwis2012-03-051-0/+4
| |
* | Issue #14128: Exposing Element as an actual type from _elementtree, rather ↵Eli Bendersky2012-03-041-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öwis2012-02-192-9/+34
| |
* | Use __slots__ throughout instead of __dict__, to reduce the memory usage.Martin v. Löwis2012-02-192-141/+114
| |
* | fix the _namespace_map cleanup for cElementTree tests.Florent Xicluna2012-02-161-0/+2
| |
* | Issue #13988: cElementTree is deprecated and the _elementtree accelerator is ↵Florent Xicluna2012-02-132-156/+88
| | | | | | | | automatically used whenever available.
* | Issue #13988: move the python bootstrap code to cElementTree.py, and remove ↵Florent Xicluna2012-02-111-0/+150
| | | | | | | | obsolete code for Python 2.4 and 2.5.
* | Fix imports in xml.dom.Florent Xicluna2011-12-101-5/+1
| |
* | #4147: merge with 3.2.Ezio Melotti2011-11-181-5/+9
|\ \ | |/
| * #4147: minidom's toprettyxml no longer adds whitespace around a text node ↵Ezio Melotti2011-11-181-5/+9
| | | | | | | | when it is the only child of an element. Initial patch by Dan Kenigsberg.