summaryrefslogtreecommitdiff
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2008-04-10 19:54:13 +0000
committerGregory P. Smith <greg@mad-scientist.com>2008-04-10 19:54:13 +0000
commita6add69a63385da3e8abf34023b671137479bf5a (patch)
tree7bb7b862f779649f61bebaee338298800452c6b2 /Objects/stringobject.c
parent14acde30f634c1b52e498e29dd772c4fa9f41380 (diff)
downloadcpython-git-a6add69a63385da3e8abf34023b671137479bf5a.tar.gz
backport r62271 from trunk.
remove the now obsoleted assertion.
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r--Objects/stringobject.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index 7cd613dd87..3901f5731a 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -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");