Kaydet (Commit) 9c0e94f9 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

Merged revisions 80129 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80129 | benjamin.peterson | 2010-04-16 17:52:44 -0500 (Fri, 16 Apr 2010) | 1 line

  tiny simplification
........
üst 8380dd5a
...@@ -757,8 +757,7 @@ bytearray_init(PyByteArrayObject *self, PyObject *args, PyObject *kwds) ...@@ -757,8 +757,7 @@ bytearray_init(PyByteArrayObject *self, PyObject *args, PyObject *kwds)
if (count == -1 && PyErr_Occurred()) { if (count == -1 && PyErr_Occurred()) {
if (PyErr_ExceptionMatches(PyExc_OverflowError)) if (PyErr_ExceptionMatches(PyExc_OverflowError))
return -1; return -1;
else PyErr_Clear();
PyErr_Clear();
} }
else if (count < 0) { else if (count < 0) {
PyErr_SetString(PyExc_ValueError, "negative count"); PyErr_SetString(PyExc_ValueError, "negative count");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment