summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-01-14 05:21:49 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-01-14 05:21:49 (GMT)
commita677d7628b7a0f57c49069bf82306819b68775ae (patch)
tree10a80aa33f2f3296d00040513e755c0de4e037fe
parent9cb33b7d0318e739024eb4adf5e7e2c26feaabaf (diff)
downloadcpython-a677d7628b7a0f57c49069bf82306819b68775ae.zip
cpython-a677d7628b7a0f57c49069bf82306819b68775ae.tar.gz
cpython-a677d7628b7a0f57c49069bf82306819b68775ae.tar.bz2
remove overly strict assertion (closes #20251)
-rw-r--r--Modules/socketmodule.c1
1 files changed, 0 insertions, 1 deletions
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);