From: Benjamin Peterson Date: Tue, 14 Jan 2014 05:21:49 +0000 (-0500) Subject: remove overly strict assertion (closes #20251) X-Git-Tag: v2.7.8~124 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e79889184a3da2aa113b78967d44a2bd13a0fa6;p=python remove overly strict assertion (closes #20251) --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 27df333b7a..880f31165a 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -2732,7 +2732,6 @@ sock_recvfrom_into(PySocketSockObject *s, PyObject *args, PyObject* kwds) &recvlen, &flags)) return NULL; buflen = buf.len; - assert(buf.buf != 0 && buflen > 0); if (recvlen < 0) { PyErr_SetString(PyExc_ValueError,