]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-128302: Fix bugs in xml.dom.xmlbuilder (GH-128284) (#128583)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 11 Jan 2025 11:30:29 +0000 (12:30 +0100)
committerGitHub <noreply@github.com>
Sat, 11 Jan 2025 11:30:29 +0000 (13:30 +0200)
commit07a65cdcc576a84aaf272201866b14b4af5698e4
tree7a41c57aa2399e0b57e96189d8c7ef4270aa1405
parentb55c40419e3bdf325ed5ebc73e9473dab3eaf090
[3.12] gh-128302: Fix bugs in xml.dom.xmlbuilder (GH-128284) (#128583)

gh-128302: Fix bugs in xml.dom.xmlbuilder (GH-128284)

* Allow DOMParser.parse() to correctly handle DOMInputSource instances
  that only have a systemId attribute set.
* Fix DOMEntityResolver.resolveEntity(), which was broken by the
  Python 3.0 transition.
* Add Lib/test/test_xml_dom_xmlbuilder.py with few tests.
(cherry picked from commit 6ea04da27036eaa69d65150148bb8c537d9beacf)

Co-authored-by: Stephen Morton <git@tungol.org>
Lib/test/test_xml_dom_xmlbuilder.py [new file with mode: 0644]
Lib/xml/dom/xmlbuilder.py
Misc/NEWS.d/next/Library/2024-12-27-16-28-57.gh-issue-128302.2GMvyl.rst [new file with mode: 0644]
Misc/NEWS.d/next/Library/2024-12-29-13-49-46.gh-issue-128302.psRpPN.rst [new file with mode: 0644]