]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43132: Fix incorrect handling of PyObject_RichCompareBool() in _zoneinfo (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 5 Feb 2021 17:13:40 +0000 (09:13 -0800)
committerGitHub <noreply@github.com>
Fri, 5 Feb 2021 17:13:40 +0000 (19:13 +0200)
commitc8b4375fe1aca1188f57ecf482547abd77e3ef91
tree1f6118bd78e68771fc82a4df784d485a288b3c74
parentb0b01811bb28d3d6c70846e47fa2f6ba03ed03f1
bpo-43132: Fix incorrect handling of PyObject_RichCompareBool() in _zoneinfo (GH-24450) (GH-24457)

PyObject_RichCompareBool() returns -1 on error, but this case is
not handled by the find_in_strong_cache() function.  Any exception
raised by PyObject_RichCompareBool() should be propagated.
(cherry picked from commit effaec0bb54f381db8ccfa62514bc26b00946b40)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Modules/_zoneinfo.c