mirror of https://github.com/python/cpython
remove overly strict assertion (closes #20251)
This commit is contained in:
parent
9cb33b7d03
commit
a677d7628b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue