summaryrefslogtreecommitdiffstats
path: root/Lib/xml
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | Merge 3.2: issue #2892Florent Xicluna2011-11-011-15/+23
|\ \ | |/
| * Closes #2892: preserve iterparse events in case of SyntaxError.Florent Xicluna2011-11-011-15/+23
| |
* | merge #4147: minidom's toprettyxml no longer adds whitespace to text nodes.R David Murray2011-10-011-2/+4
|\ \ | |/
| * #4147: minidom's toprettyxml no longer adds whitespace to text nodes.R David Murray2011-10-011-2/+4
| | | | | | | | Patch by Dan Kenigsberg.
* | (merge 3.2) Issue #12451: xml.dom.pulldom: parse() now opens files in binaryVictor Stinner2011-07-031-1/+1
|\ \ | |/ | | | | | | mode instead of the text mode (using the locale encoding) to avoid encoding issues.
| * Issue #12451: xml.dom.pulldom: parse() now opens files in binary mode insteadVictor Stinner2011-07-031-1/+1
| | | | | | | | 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.
| * 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.
* | remove __version__s dependent on subversion keyword expansion (closes #12221)Benjamin Peterson2011-06-011-2/+0
|/
* 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-162-2/+2
|\ \ | |/
| * #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-162-2/+2
| |
* | #11515: Merge with 3.1.Ezio Melotti2011-03-151-1/+1
|\ \ | |/
| * #11515: fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-151-1/+1
| |
| * Merged revisions 85530,85532-85534,85538-85543,85546-85548 via svnmerge fromGeorg Brandl2010-11-261-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r85530 | georg.brandl | 2010-10-15 17:32:05 +0200 (Fr, 15 Okt 2010) | 1 line Refrain from using inline suites. ........ r85532 | georg.brandl | 2010-10-15 18:03:02 +0200 (Fr, 15 Okt 2010) | 1 line #7771: reference to documentation of dictview methods and operations. ........ r85533 | georg.brandl | 2010-10-15 18:07:41 +0200 (Fr, 15 Okt 2010) | 1 line #9683: remove broken dead code dealing with nested arguments removed from Py3k, and update the docs and docstrings accordingly. ........ r85534 | georg.brandl | 2010-10-15 18:19:43 +0200 (Fr, 15 Okt 2010) | 1 line #9801: document how list and dict proxies created by Managers behave w.r.t. mutable items. ........ r85538 | georg.brandl | 2010-10-15 18:35:46 +0200 (Fr, 15 Okt 2010) | 1 line #7303: add documentation for useful pkgutil functions and classes. ........ r85539 | georg.brandl | 2010-10-15 18:42:14 +0200 (Fr, 15 Okt 2010) | 1 line Fix issue references. ........ r85540 | georg.brandl | 2010-10-15 18:42:37 +0200 (Fr, 15 Okt 2010) | 1 line #6798: fix wrong docs for the arguments to several trace events. ........ r85541 | georg.brandl | 2010-10-15 18:53:24 +0200 (Fr, 15 Okt 2010) | 1 line #4968: updates to inspect.is* function docs. ........ r85542 | georg.brandl | 2010-10-15 19:01:15 +0200 (Fr, 15 Okt 2010) | 1 line #7790: move table of struct_time members to the actual description of struct_time. ........ r85543 | georg.brandl | 2010-10-15 19:03:02 +0200 (Fr, 15 Okt 2010) | 1 line #4785: document strict argument of JSONDecoder, plus add object_pairs_hook in the docstrings. ........ r85546 | georg.brandl | 2010-10-15 19:58:45 +0200 (Fr, 15 Okt 2010) | 1 line #5762: fix handling of empty namespace in minidom, which would result in AttributeError on toxml(). ........ r85547 | georg.brandl | 2010-10-15 20:00:35 +0200 (Fr, 15 Okt 2010) | 1 line #6098: Refrain from claiming DOM level 3 conformance in minidom. ........ r85548 | georg.brandl | 2010-10-15 21:46:19 +0200 (Fr, 15 Okt 2010) | 1 line #10072: assume a bit less knowledge of the FTP protocol in the ftplib docs. ........
| * Merged revisions 85858 via svnmerge fromAntoine Pitrou2010-10-271-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85858 | antoine.pitrou | 2010-10-27 20:33:30 +0200 (mer., 27 oct. 2010) | 5 lines Issue #5027: The standard `xml` namespace is now understood by xml.sax.saxutils.XMLGenerator as being bound to http://www.w3.org/XML/1998/namespace. Patch by Troy J. Farrell. ........
| * Merged revisions 82629,82632,82724,82757-82758,82760-82763,82798-82799,82801 ↵Georg Brandl2010-10-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | via svnmerge from svn+ssh://svn.python.org/python/branches/py3k ........ r82629 | georg.brandl | 2010-07-07 20:51:43 +0200 (Mi, 07 Jul 2010) | 1 line Make comment out of an awkward note. ........ r82632 | georg.brandl | 2010-07-07 21:04:36 +0200 (Mi, 07 Jul 2010) | 1 line Turn more notes into comments. ........ r82724 | georg.brandl | 2010-07-09 09:33:15 +0200 (Fr, 09 Jul 2010) | 1 line 2.7 is now stable. ........ r82757 | georg.brandl | 2010-07-10 10:58:37 +0200 (Sa, 10 Jul 2010) | 1 line Fix markup. ........ r82758 | georg.brandl | 2010-07-10 12:23:40 +0200 (Sa, 10 Jul 2010) | 1 line Emphasize role of count for Pascal string. ........ r82760 | georg.brandl | 2010-07-10 12:39:57 +0200 (Sa, 10 Jul 2010) | 1 line #3214: improve description of duck-typing in glossary. ........ r82761 | georg.brandl | 2010-07-10 13:40:13 +0200 (Sa, 10 Jul 2010) | 1 line #1434090: properly append child in expatbuilder doctype handler. ........ r82762 | georg.brandl | 2010-07-10 13:51:06 +0200 (Sa, 10 Jul 2010) | 1 line #8338: fix outdated class name. ........ r82763 | georg.brandl | 2010-07-10 14:01:34 +0200 (Sa, 10 Jul 2010) | 1 line #8456: fix signature of sqlite3.connect(). ........ r82798 | georg.brandl | 2010-07-11 11:23:11 +0200 (So, 11 Jul 2010) | 1 line #6774: explain shutdown() behavior varying with platform. ........ r82799 | georg.brandl | 2010-07-11 11:26:57 +0200 (So, 11 Jul 2010) | 1 line Fix typo. ........ r82801 | georg.brandl | 2010-07-11 11:33:39 +0200 (So, 11 Jul 2010) | 1 line #9184: fix default value for "buffering" param of open(). ........