diff Objects/bytesobject.c @ 46391:1aaab32183f2 legacy-trunk

get rid of assert (size >= 0) now that an explicit if (size < 0) is in the code.
author Gregory P. Smith <greg@mad-scientist.com>
date Thu, 10 Apr 2008 19:50:36 +0000
parents 0b55875c1c9c
children 24205b1f954e
line wrap: on
line diff
--- a/Objects/bytesobject.c	Thu Apr 10 05:46:39 2008 +0000
+++ b/Objects/bytesobject.c	Thu Apr 10 19:50:36 2008 +0000
@@ -160,7 +160,6 @@
     PyBytesObject *new;
     Py_ssize_t alloc;
 
-    assert(size >= 0);
     if (size < 0) {
         PyErr_SetString(PyExc_SystemError,
             "Negative size passed to PyBytes_FromStringAndSize");