]> granicus.if.org Git - python/commitdiff
backport r62271 from trunk.
authorGregory P. Smith <greg@mad-scientist.com>
Thu, 10 Apr 2008 19:54:13 +0000 (19:54 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Thu, 10 Apr 2008 19:54:13 +0000 (19:54 +0000)
remove the now obsoleted assertion.

Objects/stringobject.c

index 7cd613dd87292e05c319c0346a547f0260d078b3..3901f5731a747d964585a4a87ee752a64c05f43f 100644 (file)
@@ -53,7 +53,6 @@ PyObject *
 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");