Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-41900: C14N 2.0 serialisation failed for unprefixed attributes when a ↵ | Miss Skeleton (bot) | 2020-10-03 | 1 | -0/+8 |
| | | | | | default namespace was defined. (GH-22474) (GH-22507) (cherry picked from commit 6a412c94b6b68e7e3632562dc7358a12ffd1447f) | ||||
* | bpo-39011: Preserve line endings within ElementTree attributes (GH-18468) | mefistotelis | 2020-04-12 | 1 | -2/+3 |
| | | | | | | | * 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-39495: Remove default value from C impl of TreeBuilder.start (GH-18275) | Shantanu | 2020-03-02 | 1 | -0/+4 |
| | |||||
* | bpo-20928: support base-URL and recursive includes in etree.ElementInclude ↵ | Stefan Behnel | 2019-11-25 | 1 | -0/+82 |
| | | | | | | | | | | | | (#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/+29 |
| | | | | copy.copy() (GH-12995) | ||||
* | bpo-36543: Remove old-deprecated ElementTree features. (GH-12707) | Serhiy Storchaka | 2019-09-01 | 1 | -50/+10 |
| | | | | | 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 | -0/+117 |
| | | | | XML trees (GH-15200) | ||||
* | bpo-37399: Correctly attach tail text to the last element/comment/pi (GH-14856) | Stefan Behnel | 2019-07-24 | 1 | -0/+60 |
| | | | | * bpo-37399: Correctly attach tail text to the last element/comment/pi, even when comments or pis are discarded. Also fixes the insertion of PIs when "insert_pis=True" is configured for a TreeBuilder. | ||||
* | bpo-36831: Do not apply default namespace to unprefixed attributes in ↵ | Stefan Behnel | 2019-05-09 | 1 | -6/+21 |
| | | | | | 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 | -2/+54 |
| | | | | 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/+229 |
| | | | | | | | * 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 | -5/+88 |
| | | | | | 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 | -3/+87 |
| | | | | | | | | 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-32424: Improve test coverage for xml.etree.ElementTree (GH-12891) | Gordon P. Hemsley | 2019-04-28 | 1 | -2/+85 |
| | | | | * Fix typo in test_cyclic_gc subtest * Improve test coverage for xml.etree.ElementTree | ||||
* | bpo-30485: Change the prefix for defining the default namespace in ↵ | Stefan Behnel | 2019-04-18 | 1 | -1/+1 |
| | | | | 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 | -3/+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 | -0/+6 |
| | | | | as prefix (#1823) | ||||
* | bpo-36227: ElementTree.tostring() default_namespace and xml_declaration ↵ | Bernt Røskar Brenna | 2019-04-14 | 1 | -0/+123 |
| | | | | | 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-34160: Preserve user specified order of Element attributes in html. ↵ | Serhiy Storchaka | 2018-10-29 | 1 | -8/+4 |
| | | | | (GH-10190) | ||||
* | bpo-34160: Preserve user specified order of Element attributes (GH-10163) | Raymond Hettinger | 2018-10-28 | 1 | -0/+20 |
| | |||||
* | bpo-35013: Add more type checks for children of Element. (GH-9944) | Serhiy Storchaka | 2018-10-19 | 1 | -20/+22 |
| | | | | | | 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-34941: Fix searching Element subclasses. (GH-9766) | Serhiy Storchaka | 2018-10-14 | 1 | -0/+15 |
| | | | | Methods find(), findtext() and findall() of xml.etree.ElementTree.Element were not able to find chldren which are instances of Element subclasses. | ||||
* | bpo-17239: Disable external entities in SAX parser (GH-9217) | Christian Heimes | 2018-09-23 | 1 | -0/+13 |
| | | | | | | | | | | | | The SAX parser no longer processes general external entities by default to increase security. Before, the parser created network connections to fetch remote files or loaded local files from the file system for DTD and entities. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue17239 | ||||
* | bpo-29209: Remove old-deprecated features in ElementTree. (GH-6769) | Serhiy Storchaka | 2018-07-24 | 1 | -23/+8 |
| | | | | | Also make getchildren() and getiterator() emitting a DeprecationWarning instead of PendingDeprecationWarning. | ||||
* | bpo-33761: Fix a file leak in test_iterparse in test_xml_etree. (GH-7358) | Serhiy Storchaka | 2018-06-03 | 1 | -3/+5 |
| | |||||
* | 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-31648: Improve ElementPath (#3835) | scoder | 2017-09-30 | 1 | -0/+33 |
| | | | | | * Allow whitespace inside of ElementPath predicates. * Add ElementPath predicate support for text comparison of the current node, like "[.='text']". | ||||
* | bpo-31170: Write unit test for Expat 2.2.4 UTF-8 bug (#3570) | Victor Stinner | 2017-09-25 | 1 | -0/+32 |
| | | | Non-regression tests for the Expat 2.2.3 UTF-8 decoder bug. | ||||
* | bpo-31455: Fix an assertion failure in ElementTree.XMLParser(). (#3545) | scoder | 2017-09-14 | 1 | -0/+25 |
| | | | | | | * Avoid calling "PyObject_GetAttrString()" (and potentially executing user code) with a live exception set. * Ignore only AttributeError on attribute lookups in ElementTree.XMLParser() and propagate all other exceptions. | ||||
* | bpo-30442: Skips refcount test in test_xml_etree under coverage (#1767) | Kushal Das | 2017-05-24 | 1 | -0/+1 |
| | |||||
* | bpo-29204: Emit warnings for already deprecated ElementTree features. (#773) | Serhiy Storchaka | 2017-03-30 | 1 | -48/+41 |
| | | | | | | | | 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. | ||||
* | bpo-27863: Fixed multiple crashes in ElementTree. (#765) | Serhiy Storchaka | 2017-03-30 | 1 | -0/+112 |
| | |||||
* | Issue #28314: Added tests for xml.etree.ElementTree.Element.getiterator(). | Serhiy Storchaka | 2016-10-25 | 1 | -0/+32 |
|\ | |||||
| * | Issue #28314: Added tests for xml.etree.ElementTree.Element.getiterator(). | Serhiy Storchaka | 2016-10-25 | 1 | -0/+32 |
| | | |||||
* | | merge | Raymond Hettinger | 2016-09-12 | 1 | -0/+8 |
|\ \ | |/ | |||||
| * | Issue #17582: xml.etree.ElementTree nows preserves whitespaces in attributes | Raymond Hettinger | 2016-09-12 | 1 | -0/+8 |
| | | | | | | | | (Patch by Duane Griffin. Reviewed and approved by Stefan Behnel.) | ||||
* | | Issue #25455: Fixed a crash in repr of ElementTree.Element with recursive tag. | Serhiy Storchaka | 2016-06-12 | 1 | -1/+7 |
|\ \ | |/ | |||||
| * | Issue #25455: Fixed a crash in repr of ElementTree.Element with recursive tag. | Serhiy Storchaka | 2016-06-12 | 1 | -1/+7 |
| | | |||||
* | | Issue #26676: Add missing XMLPullParser to ElementTree.__all__ | Martin Panter | 2016-04-01 | 1 | -2/+4 |
| | | |||||
* | | Issue #26325: Added test.support.check_no_resource_warning() to check that | Serhiy Storchaka | 2016-02-11 | 1 | -8/+2 |
|\ \ | |/ | | | | | no ResourceWarning is emitted. | ||||
| * | Issue #26325: Added test.support.check_no_resource_warning() to check that | Serhiy Storchaka | 2016-02-11 | 1 | -8/+2 |
| | | | | | | | | no ResourceWarning is emitted. | ||||
* | | Issue #25902: Fixed various refcount issues in ElementTree iteration. | Serhiy Storchaka | 2015-12-21 | 1 | -0/+51 |
|\ \ | |/ | |||||
| * | Issue #25902: Fixed various refcount issues in ElementTree iteration. | Serhiy Storchaka | 2015-12-21 | 1 | -0/+51 |
| | | |||||
* | | Issue #7990: dir() on ElementTree.Element now lists properties: "tag", | Serhiy Storchaka | 2015-11-25 | 1 | -4/+6 |
|/ | | | | "text", "tail" and "attrib". Original patch by Santoso Wijaya. | ||||
* | Issue #25688: Fixed file leak in ElementTree.iterparse() raising an error. | Serhiy Storchaka | 2015-11-23 | 1 | -2/+27 |
|\ | |||||
| * | Issue #25688: Fixed file leak in ElementTree.iterparse() raising an error. | Serhiy Storchaka | 2015-11-23 | 1 | -2/+27 |
| | | |||||
* | | Issue #25691: Fixed crash on deleting ElementTree.Element attributes. | Serhiy Storchaka | 2015-11-23 | 1 | -0/+27 |
|\ \ | |/ | |||||
| * | Issue #25691: Fixed crash on deleting ElementTree.Element attributes. | Serhiy Storchaka | 2015-11-23 | 1 | -0/+27 |
| | | |||||
* | | Issue #19687: Fixed memory leak on failed Element slice assignment. | Serhiy Storchaka | 2015-11-22 | 1 | -0/+75 |
|\ \ | |/ | | | | | Added new tests for Element slice assignments. | ||||
| * | Issue #19687: Fixed memory leak on failed Element slice assignment. | Serhiy Storchaka | 2015-11-22 | 1 | -0/+75 |
| | | | | | | | | Added new tests for Element slice assignments. |