summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2008-04-10 19:50:36 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2008-04-10 19:50:36 (GMT)
commit2ea2968064e1868cc187754d6d9349c2e68b7734 (patch)
tree0585da4ef80d8d939259ef7e4a7b21a45ab646ba /Objects/unicodeobject.c
parent36a59b4a08ec297d0caabd5ff60375f6fd1d236f (diff)
downloadcpython-2ea2968064e1868cc187754d6d9349c2e68b7734.zip
cpython-2ea2968064e1868cc187754d6d9349c2e68b7734.tar.gz
cpython-2ea2968064e1868cc187754d6d9349c2e68b7734.tar.bz2
get rid of assert (size >= 0) now that an explicit if (size < 0) is in the code.
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 4337972..a8e0e11 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -466,7 +466,6 @@ PyObject *PyUnicode_FromStringAndSize(const char *u, Py_ssize_t size)
{
PyUnicodeObject *unicode;
- assert(size <= 0);
if (size < 0) {
PyErr_SetString(PyExc_SystemError,
"Negative size passed to PyUnicode_FromStringAndSize");