From: Benjamin Peterson Date: Fri, 16 Apr 2010 22:52:44 +0000 (+0000) Subject: tiny simplification X-Git-Tag: v2.7b2~265 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae530c2babdf6c73946b386f8ca1369b7d011b7e;p=thirdparty%2FPython%2Fcpython.git tiny simplification --- diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c index 61fe8debb92d..a842f47925d2 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");