]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-20928: support base-URL and recursive includes in etree.ElementInclude (#5723)
authorStefan Behnel <stefan_ml@behnel.de>
Mon, 25 Nov 2019 15:36:25 +0000 (16:36 +0100)
committerGitHub <noreply@github.com>
Mon, 25 Nov 2019 15:36:25 +0000 (16:36 +0100)
commitc6a7bdb356835c9d7513b1ea6846683d446fe6c3
tree3e98d7da17cbffbfc4ffd97392c5869caccb5185
parentded8888fbc33011dd39b7b1c86a5adfacc4943f3
bpo-20928: support base-URL and recursive includes in etree.ElementInclude (#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
Lib/test/test_xml_etree.py
Lib/xml/etree/ElementInclude.py
Misc/NEWS.d/next/Library/2018-03-30-16-18-12.bpo-20928.ieXu6I.rst [new file with mode: 0644]