mirror of https://github.com/python/cpython
tiny simplification
This commit is contained in:
parent
821a8ea39f
commit
ae530c2bab
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue