]> granicus.if.org Git - python/commit
[3.6] bpo-31455: Fix an assertion failure in ElementTree.XMLParser(). (GH-3545) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 14 Sep 2017 23:13:21 +0000 (16:13 -0700)
committerSerhiy Storchaka <storchaka@gmail.com>
Thu, 14 Sep 2017 23:13:21 +0000 (02:13 +0300)
commit49caab46f687eb201898fb6c2c40d47bdcb0e58b
tree4fc89fa36e1b325e5f2e2a9ae1e63cbe6a597e49
parent1658ec07577ef9696cea76fcf7fac2da18403ec5
[3.6] bpo-31455: Fix an assertion failure in ElementTree.XMLParser(). (GH-3545) (#3585)

* 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.
(cherry picked from commit c8d8e15bfc24abeeaaf3d8be9073276b0c011cdf)
Lib/test/test_xml_etree.py
Misc/NEWS.d/next/Library/2017-09-13-19-55-35.bpo-31544.beTh6t.rst [new file with mode: 0644]
Modules/_elementtree.c