summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-05-28 19:24:35 (GMT)
committerGuido van Rossum <guido@python.org>1998-05-28 19:24:35 (GMT)
commit08570decb7862d6f7347e92df86c1f96ae200036 (patch)
tree060fb88e56e0171d01819251e85a519ab68d958c
parent41e825a8f408c034493a59a12fe4ab42bb96e78b (diff)
downloadcpython-08570decb7862d6f7347e92df86c1f96ae200036.zip
cpython-08570decb7862d6f7347e92df86c1f96ae200036.tar.gz
cpython-08570decb7862d6f7347e92df86c1f96ae200036.tar.bz2
Uses PyErr_ExceptionMatches() instead of comparing PyErr_Occurred().
-rw-r--r--Objects/abstract.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index b35b5dd..502bd82 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -1158,7 +1158,7 @@ PySequence_Contains(w, v) /* v in w */
for (i = 0; ; i++) {
x = (*sq->sq_item)(w, i);
if (x == NULL) {
- if (PyErr_Occurred() == PyExc_IndexError) {
+ if (PyErr_ExceptionMatches(PyExc_IndexError)) {
PyErr_Clear();
break;
}