diff Objects/stringobject.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 877783333eae
line wrap: on
line diff
--- a/Objects/stringobject.c	Thu Apr 10 05:46:39 2008 +0000
+++ b/Objects/stringobject.c	Thu Apr 10 19:50:36 2008 +0000
@@ -55,7 +55,6 @@
 PyString_FromStringAndSize(const char *str, Py_ssize_t size)
 {
 	register PyStringObject *op;
-	assert(size >= 0);
 	if (size < 0) {
 		PyErr_SetString(PyExc_SystemError,
 		    "Negative size passed to PyString_FromStringAndSize");