summaryrefslogtreecommitdiff
path: root/Lib/xml
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | 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
| | |\ \
| | * \ \ Merge 3.2: issue #2892Florent Xicluna2011-11-011-15/+23
| | |\ \ \
| | * \ \ \ merge #4147: minidom's toprettyxml no longer adds whitespace to text nodes.R David Murray2011-10-011-2/+4
| | |\ \ \ \
| | * \ \ \ \ (merge 3.2) Issue #12451: xml.dom.pulldom: parse() now opens files in binaryVictor Stinner2011-07-041-2/+0
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mode instead of the text mode (using the locale encoding) to avoid encoding issues.
| | | * \ \ \ \ (merge 3.2) Issue #12451: The XInclude default loader of xml.etree now decodesVictor Stinner2011-06-301-4/+5
| | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | files from UTF-8 instead of the locale encoding if the encoding is not specified. It now also opens XML files for the parser in binary mode instead of the text mode to avoid encoding issues.
| | | * | | | | | remove __version__s dependent on subversion keyword expansion (closes #12221)Benjamin Peterson2011-05-311-2/+0
| | | | | | | | |
* | | | | | | | | Describe the default_namespace parameter of ElemetTree.write.Serhiy Storchaka2013-01-131-2/+3
|/ / / / / / / /
* | | | | | | | Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-182-4/+4
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | Patch by Serhiy Storchaka.
* | | | | | | #15970: xml.etree.ElementTree now serializes correctly the empty HTML ↵Ezio Melotti2012-09-191-1/+1
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | elements "meta" and "param".
* | | | | | #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.
* | | | | Closes #2892: preserve iterparse events in case of SyntaxError.Florent Xicluna2011-11-011-15/+23
| |_|_|/ |/| | |
* | | | #4147: minidom's toprettyxml no longer adds whitespace to text nodes.R David Murray2011-10-011-2/+4
|/ / / | | | | | | | | | Patch by Dan Kenigsberg.
* | | Issue #12451: xml.dom.pulldom: parse() now opens files in binary mode insteadVictor Stinner2011-07-041-1/+1
| |/ |/| | | | | of the text mode (using the locale encoding) to avoid encoding issues.
* | Issue #12451: The XInclude default loader of xml.etree now decodes files fromVictor Stinner2011-06-301-4/+5
|/ | | | | | UTF-8 instead of the locale encoding if the encoding is not specified. It now also opens XML files for the parser in binary mode instead of the text mode to avoid encoding issues.
* merge 11164Martin v. Löwis2011-05-091-21/+0
|\
| * Stop trying to use _xmlplus in the xml module. Closes #11164.Martin v. Löwis2011-05-091-21/+0
| | | | | | | | Patch by Arfrever Frehtes Taifersar Arahesis.
* | #11565: Merge with 3.1.Ezio Melotti2011-03-168-532/+1134
|\ \ | |/ |/|
| * #11515: Merge with 3.1.Ezio Melotti2011-03-151-1/+1
| |\
| * | #10777: fix iteration over dict keys while mutating the dict.Georg Brandl2010-12-281-1/+1
| | |
| * | Guard against rogue tuples.Georg Brandl2010-12-091-1/+1
| | |
| * | #10661: give QName a nicer repr.Georg Brandl2010-12-091-0/+2
| | |
| * | Fix Issue10205 - XML QName error when different tags have same QName.Senthil Kumaran2010-11-091-2/+3
| | |
| * | close the source's byte streamBenjamin Peterson2010-10-311-0/+3
| | |
| * | Issue #10093: ResourceWarnings are now issued when files and sockets areAntoine Pitrou2010-10-291-11/+22
| | | | | | | | | | | | | | | deallocated without explicit closing. These warnings are silenced by default, except in pydebug mode.
| * | Issue #5027: The standard `xml` namespace is now understood byAntoine Pitrou2010-10-271-0/+6
| | | | | | | | | | | | | | | xml.sax.saxutils.XMLGenerator as being bound to http://www.w3.org/XML/1998/namespace. Patch by Troy J. Farrell.
| * | #1343: Add short_empty_elements option to XMLGenerator.R. David Murray2010-10-171-7/+35
| | | | | | | | | | | | Patch and tests by Neil Muller.
| * | #6098: Refrain from claiming DOM level 3 conformance in minidom.Georg Brandl2010-10-151-2/+0
| | |
| * | #5762: fix handling of empty namespace in minidom, which would result in ↵Georg Brandl2010-10-151-3/+4
| | | | | | | | | | | | AttributeError on toxml().
| * | #5355 followup: add unit test for new dictionaries, and provide submodules ↵Georg Brandl2010-10-151-0/+6
| | | | | | | | | | | | from xml.parsers.expat as advertised.
| * | Fix xml.etree.ElementInclude to include the tail of the current node. Issue ↵Florent Xicluna2010-08-081-1/+1
| | | | | | | | | | | | #6231
| * | Issue #8047: Fix the xml.etree serializer to return bytes by default.Florent Xicluna2010-08-081-25/+34
| | | | | | | | | | | | Use ``encoding="unicode"`` to generate a Unicode string.
| * | #777884: make .normalize() do nothing for childless nodes, instead of ↵Andrew M. Kuchling2010-07-251-0/+4
| | | | | | | | | | | | raising an exception
| * | #1434090: properly append child in expatbuilder doctype handler.Georg Brandl2010-07-101-1/+1
| | |