summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-rw-r--r--Objects/fileobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index 485c378..f13aa54 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -804,8 +804,7 @@ ms_getline_hack(FILE *fp)
/* Internal routine to get a line.
Size argument interpretation:
> 0: max length;
- = 0: read arbitrary line;
- < 0: invalid
+ <= 0: read arbitrary line
*/
#ifdef HAVE_GETC_UNLOCKED
@@ -828,7 +827,8 @@ get_line(PyFileObject *f, int n)
PyObject *v;
#ifdef USE_MS_GETLINE_HACK
- if (n == 0)
+
+ if (n <= 0)
return ms_getline_hack(fp);
#endif
n2 = n > 0 ? n : 100;