]> granicus.if.org Git - python/commitdiff
* Objects/fileobject.c
authorGustavo Niemeyer <gustavo@niemeyer.net>
Tue, 17 Dec 2002 17:48:00 +0000 (17:48 +0000)
committerGustavo Niemeyer <gustavo@niemeyer.net>
Tue, 17 Dec 2002 17:48:00 +0000 (17:48 +0000)
  (file_read): Replaced assertion with mixed sign operation by a simple
  comment (thank you Raymond). The algorithm is clear enough in that point.

Objects/fileobject.c

index 612cefd8c3e19e613c9485af428f8d881d4224f6..33fb3bc168a2882aa489e3c19174b70832228d71 100644 (file)
@@ -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;
                }
        }