]> granicus.if.org Git - python/commit
bpo-31091: Remove dead code in PyErr_GivenExceptionMatches(). (#2963)
authorscoder <stefan_ml@behnel.de>
Mon, 31 Jul 2017 20:27:46 +0000 (22:27 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 31 Jul 2017 20:27:46 +0000 (23:27 +0300)
commite4c06bcca358c6dcb6393a75a1589ff6a2d45cde
tree68f6c40cff3c4159c0ba0c822776fcdd1ee28135
parent8474d87165593bac2bc231287f42c4cff3fd6aaf
bpo-31091: Remove dead code in PyErr_GivenExceptionMatches(). (#2963)

According to the comment, there was previously a call to PyObject_IsSubclass() involved which could fail, but since it was replaced with a call to PyType_IsSubtype(), it can no longer fail.
Python/errors.c