[Python-checkins] r80129 - python/trunk/Objects/bytearrayobject.c

benjamin.peterson python-checkins at python.org
Sat Apr 17 00:52:44 CEST 2010


Author: benjamin.peterson
Date: Sat Apr 17 00:52:44 2010
New Revision: 80129

Log:
tiny simplification

Modified:
   python/trunk/Objects/bytearrayobject.c

Modified: python/trunk/Objects/bytearrayobject.c
==============================================================================
--- python/trunk/Objects/bytearrayobject.c	(original)
+++ python/trunk/Objects/bytearrayobject.c	Sat Apr 17 00:52:44 2010
@@ -828,8 +828,7 @@
     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");


More information about the Python-checkins mailing list