]> granicus.if.org Git - python/commitdiff
Merged revisions 80129 via svnmerge from
authorBenjamin Peterson <benjamin@python.org>
Fri, 16 Apr 2010 23:00:54 +0000 (23:00 +0000)
committerBenjamin Peterson <benjamin@python.org>
Fri, 16 Apr 2010 23:00:54 +0000 (23:00 +0000)
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
........

Objects/bytearrayobject.c

index cdcfcb42d0b9b071b33694477d3f21ae1907d72a..648aad8291b13142822455615fd95f0e92a5998c 100644 (file)
@@ -834,8 +834,7 @@ bytes_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");