[Python-checkins] r62272 - python/branches/release25-maint/Objects/stringobject.c

gregory.p.smith python-checkins at python.org
Thu Apr 10 21:54:14 CEST 2008


Author: gregory.p.smith
Date: Thu Apr 10 21:54:13 2008
New Revision: 62272

Modified:
   python/branches/release25-maint/Objects/stringobject.c
Log:
backport r62271 from trunk.
remove the now obsoleted assertion.


Modified: python/branches/release25-maint/Objects/stringobject.c
==============================================================================
--- python/branches/release25-maint/Objects/stringobject.c	(original)
+++ python/branches/release25-maint/Objects/stringobject.c	Thu Apr 10 21:54:13 2008
@@ -53,7 +53,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");


More information about the Python-checkins mailing list