diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2017-09-14 23:13:21 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-09-14 23:13:21 (GMT) |
commit | 49caab46f687eb201898fb6c2c40d47bdcb0e58b (patch) | |
tree | 4fc89fa36e1b325e5f2e2a9ae1e63cbe6a597e49 /Misc | |
parent | 1658ec07577ef9696cea76fcf7fac2da18403ec5 (diff) | |
download | cpython-49caab46f687eb201898fb6c2c40d47bdcb0e58b.zip cpython-49caab46f687eb201898fb6c2c40d47bdcb0e58b.tar.gz cpython-49caab46f687eb201898fb6c2c40d47bdcb0e58b.tar.bz2 |
[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)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2017-09-13-19-55-35.bpo-31544.beTh6t.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2017-09-13-19-55-35.bpo-31544.beTh6t.rst b/Misc/NEWS.d/next/Library/2017-09-13-19-55-35.bpo-31544.beTh6t.rst new file mode 100644 index 0000000..9ea3599 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2017-09-13-19-55-35.bpo-31544.beTh6t.rst @@ -0,0 +1,2 @@ +The C accelerator module of ElementTree ignored exceptions raised when +looking up TreeBuilder target methods in XMLParser(). |