]> granicus.if.org Git - python/commitdiff
remove overly strict assertion (closes #20251)
authorBenjamin Peterson <benjamin@python.org>
Tue, 14 Jan 2014 05:21:49 +0000 (00:21 -0500)
committerBenjamin Peterson <benjamin@python.org>
Tue, 14 Jan 2014 05:21:49 +0000 (00:21 -0500)
Modules/socketmodule.c

index e371815102f40db8132414687d20799bde9e3bd6..8c8b08ea9f1cf12cc6335aa37ad9ca1071506121 100644 (file)
@@ -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);