get rid of assert (size >= 0) now that an explicit if (size < 0) is in the code.

This commit is contained in:
Gregory P. Smith 2008-04-10 19:50:36 +00:00
parent 36a59b4a08
commit 2ea2968064
3 changed files with 0 additions and 3 deletions

View file

@ -160,7 +160,6 @@ PyBytes_FromStringAndSize(const char *bytes, Py_ssize_t size)
PyBytesObject *new;
Py_ssize_t alloc;
assert(size >= 0);
if (size < 0) {
PyErr_SetString(PyExc_SystemError,
"Negative size passed to PyBytes_FromStringAndSize");