diff options
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/fileobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c index 495737e..e6461a1 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -311,6 +311,7 @@ getline(f, n) for (;;) { if ((c = getc(fp)) == EOF) { + clearerr(fp); if (intrcheck()) { DECREF(v); err_set(KeyboardInterrupt); |