diff options
author | Guido van Rossum <guido@python.org> | 1998-05-28 19:24:35 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-05-28 19:24:35 (GMT) |
commit | 08570decb7862d6f7347e92df86c1f96ae200036 (patch) | |
tree | 060fb88e56e0171d01819251e85a519ab68d958c /Objects/abstract.c | |
parent | 41e825a8f408c034493a59a12fe4ab42bb96e78b (diff) | |
download | cpython-08570decb7862d6f7347e92df86c1f96ae200036.zip cpython-08570decb7862d6f7347e92df86c1f96ae200036.tar.gz cpython-08570decb7862d6f7347e92df86c1f96ae200036.tar.bz2 |
Uses PyErr_ExceptionMatches() instead of comparing PyErr_Occurred().
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r-- | Objects/abstract.c | 2 |
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; } |