mirror of
https://github.com/python/cpython.git
synced 2025-07-19 17:25:54 +00:00
remove overly strict assertion (closes #20251)
This commit is contained in:
parent
9cb33b7d03
commit
a677d7628b
1 changed files with 0 additions and 1 deletions
|
@ -2924,7 +2924,6 @@ sock_recvfrom_into(PySocketSockObject *s, PyObject *args, PyObject* kwds)
|
||||||
return NULL;
|
return NULL;
|
||||||
buf = pbuf.buf;
|
buf = pbuf.buf;
|
||||||
buflen = pbuf.len;
|
buflen = pbuf.len;
|
||||||
assert(buf != 0 && buflen > 0);
|
|
||||||
|
|
||||||
if (recvlen < 0) {
|
if (recvlen < 0) {
|
||||||
PyBuffer_Release(&pbuf);
|
PyBuffer_Release(&pbuf);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue