From a677d7628b7a0f57c49069bf82306819b68775ae Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 14 Jan 2014 00:21:49 -0500 Subject: remove overly strict assertion (closes #20251) --- Modules/socketmodule.c | 1 - 1 file changed, 1 deletion(-) diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index e371815..8c8b08e 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -2924,7 +2924,6 @@ sock_recvfrom_into(PySocketSockObject *s, PyObject *args, PyObject* kwds) return NULL; buf = pbuf.buf; buflen = pbuf.len; - assert(buf != 0 && buflen > 0); if (recvlen < 0) { PyBuffer_Release(&pbuf); -- cgit v0.12