From: Gustavo Niemeyer Date: Tue, 17 Dec 2002 17:48:00 +0000 (+0000) Subject: * Objects/fileobject.c X-Git-Tag: v2.3c1~2981 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a080be8b63078eec95c0483b619d94ddf54c3244;p=thirdparty%2FPython%2Fcpython.git * Objects/fileobject.c (file_read): Replaced assertion with mixed sign operation by a simple comment (thank you Raymond). The algorithm is clear enough in that point. --- diff --git a/Objects/fileobject.c b/Objects/fileobject.c index 612cefd8c3e1..33fb3bc168a2 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -809,7 +809,7 @@ file_read(PyFileObject *f, PyObject *args) if (_PyString_Resize(&v, buffersize) < 0) return NULL; } else { - assert(bytesread == bytesrequested); + /* Got what was requested. */ break; } }