summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGustavo Niemeyer <gustavo@niemeyer.net>2002-12-17 17:48:00 (GMT)
committerGustavo Niemeyer <gustavo@niemeyer.net>2002-12-17 17:48:00 (GMT)
commita080be8b63078eec95c0483b619d94ddf54c3244 (patch)
tree796ed6ab758495f5d1b86158b8f9d785a56ec390 /Objects
parent529a505da4c2ffc79b598935a241a9ffe17563e5 (diff)
downloadcpython-a080be8b63078eec95c0483b619d94ddf54c3244.zip
cpython-a080be8b63078eec95c0483b619d94ddf54c3244.tar.gz
cpython-a080be8b63078eec95c0483b619d94ddf54c3244.tar.bz2
* 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.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/fileobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index 612cefd..33fb3bc 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;
}
}