Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-43399: Fix ElementTree.extend not working on iterators (GH-24751) | Alex Prengère | 2021-03-30 | 1 | -1/+1 |
| | |||||
* | bpo-42151: don't set specified_attributes=1 in pure Python ElementTree ↵ | Felix C. Stegerman | 2021-02-24 | 1 | -2/+0 |
| | | | | (GH-22987) | ||||
* | bpo-40624: Add support for the XPath != operator in xml.etree (GH-22147) | Ammar Askar | 2020-11-09 | 1 | -7/+24 |
| | |||||
* | bpo-41900: C14N 2.0 serialisation failed for unprefixed attributes when a ↵ | scoder | 2020-10-03 | 1 | -0/+5 |
| | | | | default namespace was defined. (GH-22474) | ||||
* | bpo-36543: Revert "bpo-36543: Remove the xml.etree.cElementTree module." ↵ | Serhiy Storchaka | 2020-06-10 | 1 | -0/+3 |
| | | | | | | | (GH-20117) * Revert "bpo-36543: Remove the xml.etree.cElementTree module. (GH-19108)" This reverts commit b33e52511a59c6da7132c226b7f7489b092a33eb. | ||||
* | bpo-39011: Preserve line endings within ElementTree attributes (GH-18468) | mefistotelis | 2020-04-12 | 1 | -7/+7 |
| | | | | | | | * bpo-39011: Preserve line endings within attributes Line endings within attributes were previously normalized to "\n" in Py3.7/3.8. This patch removes that normalization, as line endings which were replaced by entity numbers should be preserved in original form. | ||||
* | bpo-36543: Remove the xml.etree.cElementTree module. (GH-19108) | Serhiy Storchaka | 2020-03-22 | 1 | -3/+0 |
| | |||||
* | bpo-20928: support base-URL and recursive includes in etree.ElementInclude ↵ | Stefan Behnel | 2019-11-25 | 1 | -7/+49 |
| | | | | | | | | | | | | (#5723) * bpo-20928: bring elementtree's XInclude support en-par with the implementation in lxml by adding support for recursive includes and a base-URL. * bpo-20928: Support xincluding the same file multiple times, just not recursively. * bpo-20928: Add 'max_depth' parameter to xinclude that limits the maximum recursion depth to 6 by default. * Add news entry for updated ElementInclude support | ||||
* | bpo-32424: Deprecate xml.etree.ElementTree.Element.copy() in favor of ↵ | Gordon P. Hemsley | 2019-09-10 | 1 | -0/+7 |
| | | | | copy.copy() (GH-12995) | ||||
* | bpo-15999: Always pass bool instead of int to the expat parser. (GH-15622) | Serhiy Storchaka | 2019-09-01 | 1 | -2/+2 |
| | |||||
* | bpo-36543: Remove old-deprecated ElementTree features. (GH-12707) | Serhiy Storchaka | 2019-09-01 | 1 | -31/+0 |
| | | | | | Remove methods Element.getchildren(), Element.getiterator() and ElementTree.getiterator() and the xml.etree.cElementTree module. | ||||
* | bpo-14465: Add an indent() function to xml.etree.ElementTree to pretty-print ↵ | Stefan Behnel | 2019-08-23 | 1 | -1/+52 |
| | | | | XML trees (GH-15200) | ||||
* | bpo-36831: Do not apply default namespace to unprefixed attributes in ↵ | Stefan Behnel | 2019-05-09 | 1 | -5/+8 |
| | | | | | ElementPath. (#13201) Also provide better grouping of the tokenizer tests. | ||||
* | bpo-28238: Implement "{*}tag" and "{ns}*" wildcard tag selection support for ↵ | Stefan Behnel | 2019-05-03 | 1 | -10/+80 |
| | | | | ElementPath, and extend the surrounding tests and docs. (GH-12997) | ||||
* | bpo-13611: C14N 2.0 implementation for ElementTree (GH-12966) | Stefan Behnel | 2019-05-01 | 1 | -0/+331 |
| | | | | | | | * Implement C14N 2.0 as a new canonicalize() function in ElementTree. Missing features: - prefix renaming in XPath expressions (tag and attribute text is supported) - preservation of original prefixes given redundant namespace declarations | ||||
* | bpo-36676: Namespace prefix aware parsing support for the ET.XMLParser ↵ | Stefan Behnel | 2019-05-01 | 1 | -4/+26 |
| | | | | | target (GH-12885) * bpo-36676: Implement namespace prefix aware parsing support for the XMLParser target in ElementTree. | ||||
* | bpo-36673: Implement comment/PI parsing support for the TreeBuilder in ↵ | Stefan Behnel | 2019-05-01 | 1 | -4/+63 |
| | | | | | | | | ElementTree. (#12883) * bpo-36673: Implement comment/PI parsing support for the TreeBuilder in ElementTree. * bpo-36673: Rewrite the comment/PI factory handling for the TreeBuilder in "_elementtree" to make it use the same factories as the ElementTree module, and to make it explicit when the comments/PIs are inserted into the tree and when they are not (which is the default). | ||||
* | bpo-30485: Change the prefix for defining the default namespace in ↵ | Stefan Behnel | 2019-04-18 | 1 | -6/+2 |
| | | | | ElementPath from None to '' since there is existing code that uses that and it's more convenient to have an all-string-keys dict (e.g. when sorting items etc.). (#12860) | ||||
* | bpo-30485: Re-allow empty strings in ElementPath namespace mappings since ↵ | Stefan Behnel | 2019-04-14 | 1 | -2/+0 |
| | | | | they might actually be harmless and unused (and thus went undetected previously). (#12830) | ||||
* | bpo-30485: support a default prefix mapping in ElementPath by passing None ↵ | Stefan Behnel | 2019-04-14 | 1 | -9/+24 |
| | | | | as prefix (#1823) | ||||
* | bpo-36227: ElementTree.tostring() default_namespace and xml_declaration ↵ | Bernt Røskar Brenna | 2019-04-14 | 1 | -3/+12 |
| | | | | | arguments (GH-12225) Add new keyword arguments "default_namespace" and "xml_declaration" to functions ET.tostring() and ET.tostringlist(), as known from ElementTree.write(). | ||||
* | bpo-36431: Use PEP 448 dict unpacking for merging two dicts. (GH-12553) | Serhiy Storchaka | 2019-03-27 | 1 | -5/+2 |
| | |||||
* | bpo-34160: Preserve user specified order of Element attributes in html. ↵ | Serhiy Storchaka | 2018-10-29 | 1 | -1/+1 |
| | | | | (GH-10190) | ||||
* | bpo-34160: Preserve user specified order of Element attributes (GH-10163) | Raymond Hettinger | 2018-10-28 | 1 | -1/+1 |
| | |||||
* | bpo-35013: Add more type checks for children of Element. (GH-9944) | Serhiy Storchaka | 2018-10-19 | 1 | -5/+5 |
| | | | | | | It is now guarantied that children of xml.etree.ElementTree.Element are Elements (at least in C implementation). Previously methods __setitem__(), __setstate__() and __deepcopy__() could be used for adding non-Element children. | ||||
* | bpo-29209: Remove old-deprecated features in ElementTree. (GH-6769) | Serhiy Storchaka | 2018-07-24 | 1 | -31/+9 |
| | | | | | Also make getchildren() and getiterator() emitting a DeprecationWarning instead of PendingDeprecationWarning. | ||||
* | bpo-32297: Few misspellings found in Python source code comments. (#4803) | Mike | 2017-12-14 | 1 | -1/+1 |
| | | | | | | | | * Fix multiple typos in code comments * Add spacing in comments (test_logging.py, test_math.py) * Fix spaces at the beginning of comments in test_logging.py | ||||
* | bpo-31776: Missing "raise from None" in Lib/xml/etree/ElementPath.py (#3978) | Pablo Galindo | 2017-10-16 | 1 | -1/+1 |
| | |||||
* | bpo-31648: Improve ElementPath (#3835) | scoder | 2017-09-30 | 1 | -7/+16 |
| | | | | | * Allow whitespace inside of ElementPath predicates. * Add ElementPath predicate support for text comparison of the current node, like "[.='text']". | ||||
* | bpo-30144: Import collections ABC from collections.abc rather than ↵ | Serhiy Storchaka | 2017-04-24 | 1 | -1/+2 |
| | | | | collections. (#1263) | ||||
* | bpo-29762: More use "raise from None". (#569) | Serhiy Storchaka | 2017-04-05 | 1 | -1/+1 |
| | | | This hides unwanted implementation details from tracebacks. | ||||
* | bpo-29204: Emit warnings for already deprecated ElementTree features. (#773) | Serhiy Storchaka | 2017-03-30 | 1 | -1/+6 |
| | | | | | | | | Element.getiterator() and the html parameter of XMLParser() were deprecated only in the documentation (since Python 3.2 and 3.4 correspondintly). Now using them emits a deprecation warning. * Don’t need check_warnings any more. | ||||
* | merge | Raymond Hettinger | 2016-09-12 | 1 | -0/+11 |
|\ | |||||
| * | Issue #17582: xml.etree.ElementTree nows preserves whitespaces in attributes | Raymond Hettinger | 2016-09-12 | 1 | -0/+11 |
| | | | | | | | | (Patch by Duane Griffin. Reviewed and approved by Stefan Behnel.) | ||||
* | | #27364: fix "incorrect" uses of escape character in the stdlib. | R David Murray | 2016-09-08 | 2 | -12/+12 |
| | | | | | | | | | | | | | | And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter. | ||||
* | | Merge Element Tree doc string from 3.5 | Martin Panter | 2016-06-04 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Clarify deprecation of ElementTree.XMLParser(html=...) parameter | Martin Panter | 2016-06-04 | 1 | -1/+1 |
| | | |||||
* | | Issue #26676: Add missing XMLPullParser to ElementTree.__all__ | Martin Panter | 2016-04-01 | 1 | -1/+1 |
| | | |||||
* | | Issue #25902: Fixed various refcount issues in ElementTree iteration. | Serhiy Storchaka | 2015-12-21 | 1 | -4/+6 |
|\ \ | |/ | |||||
| * | Issue #25902: Fixed various refcount issues in ElementTree iteration. | Serhiy Storchaka | 2015-12-21 | 1 | -4/+6 |
| | | |||||
* | | Issue #25638: Optimized ElementTree.iterparse(); it is now 2x faster. | Serhiy Storchaka | 2015-12-07 | 1 | -61/+31 |
|/ | | | | | ElementTree.XMLParser._setevents now accepts any objects with the append method, not just a list. | ||||
* | Issue #25688: Fixed file leak in ElementTree.iterparse() raising an error. | Serhiy Storchaka | 2015-11-23 | 1 | -15/+26 |
|\ | |||||
| * | Issue #25688: Fixed file leak in ElementTree.iterparse() raising an error. | Serhiy Storchaka | 2015-11-23 | 1 | -15/+26 |
| | | |||||
* | | Issue #25047: Merge Element Tree encoding from 3.4 into 3.5 | Martin Panter | 2015-09-23 | 1 | -5/+4 |
|\ \ | |/ | |||||
| * | Issue #25047: Respect case writing XML encoding declarations | Martin Panter | 2015-09-23 | 1 | -5/+4 |
| | | | | | | | | | | This restores the ability to write encoding names in uppercase like "UTF-8", which worked in Python 2. | ||||
* | | Issue #23326: Removed __ne__ implementations. Since fixing default __ne__ | Serhiy Storchaka | 2015-01-31 | 1 | -4/+0 |
| | | | | | | | | implementation in issue #21408 they are redundant. | ||||
* | | Removed duplicated words in in comments and docs. | Serhiy Storchaka | 2014-12-01 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Removed duplicated words in in comments and docs. | Serhiy Storchaka | 2014-12-01 | 1 | -1/+1 |
| | | |||||
* | | Minor code cleanup. | Raymond Hettinger | 2014-11-28 | 1 | -4/+1 |
| | | |||||
* | | PEP 479: Don't let StopIteration bubble out of calls to next() inside a ↵ | Raymond Hettinger | 2014-11-23 | 1 | -3/+12 |
| | | | | | | | | generator. |