From ae530c2babdf6c73946b386f8ca1369b7d011b7e Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Fri, 16 Apr 2010 22:52:44 +0000 Subject: [PATCH] tiny simplification --- Objects/bytearrayobject.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c index 61fe8debb92..a842f47925d 100644 --- a/Objects/bytearrayobject.c +++ b/Objects/bytearrayobject.c @@ -828,8 +828,7 @@ bytearray_init(PyByteArrayObject *self, PyObject *args, PyObject *kwds) if (count == -1 && PyErr_Occurred()) { if (PyErr_ExceptionMatches(PyExc_OverflowError)) return -1; - else - PyErr_Clear(); + PyErr_Clear(); } else if (count < 0) { PyErr_SetString(PyExc_ValueError, "negative count");