[Python-checkins] cpython (2.7): remove overly strict assertion (closes #20251)
benjamin.peterson
python-checkins at python.org
Tue Jan 14 06:29:14 CET 2014
http://hg.python.org/cpython/rev/3881211cbb19
changeset: 88464:3881211cbb19
branch: 2.7
parent: 88460:950f1e83bb56
user: Benjamin Peterson <benjamin at python.org>
date: Tue Jan 14 00:21:49 2014 -0500
summary:
remove overly strict assertion (closes #20251)
files:
Modules/socketmodule.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -2732,7 +2732,6 @@
&recvlen, &flags))
return NULL;
buflen = buf.len;
- assert(buf.buf != 0 && buflen > 0);
if (recvlen < 0) {
PyErr_SetString(PyExc_ValueError,
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list