]> granicus.if.org Git - python/commit
bpo-31455: Fix an assertion failure in ElementTree.XMLParser(). (#3545)
authorscoder <stefan_ml@behnel.de>
Thu, 14 Sep 2017 20:00:03 +0000 (22:00 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Thu, 14 Sep 2017 20:00:03 +0000 (23:00 +0300)
commitc8d8e15bfc24abeeaaf3d8be9073276b0c011cdf
treefb00b03ee188ead7d74c74d8042b4c966cfeeaa3
parent0b3a87ef54a0112b74e8a1d8c6f87d10db4239ab
bpo-31455: Fix an assertion failure in ElementTree.XMLParser(). (#3545)

* 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.
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