This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Finkregh, Rebecca, ajaksu2, falsetru, georg.brandl, nvetoshkin, pitrou, schmir, vstinner
Date 2011-03-18.09:58:15
SpamBayes Score 0.0021911473
Marked as misclassified No
Message-id <1300442296.19.0.214732274226.issue1195@psf.upfronthosting.co.za>
In-reply-to
Content
Instead of always calling clearerr(), we can only call it on EOF:

diff -r 88fe1ac48460 Parser/myreadline.c
--- a/Parser/myreadline.c       Mon Mar 07 08:31:52 2011 +0100
+++ b/Parser/myreadline.c       Fri Mar 18 10:57:23 2011 +0100
@@ -72,6 +72,7 @@
     }
 #endif /* MS_WINDOWS */
     if (feof(fp)) {
+        clearerr(fp);
         return -1; /* EOF */
     }
 #ifdef EINTR

This patch works around this issue.
History
Date User Action Args
2011-03-18 09:58:16vstinnersetrecipients: + vstinner, georg.brandl, pitrou, falsetru, ajaksu2, schmir, Rebecca, nvetoshkin, Finkregh
2011-03-18 09:58:16vstinnersetmessageid: <1300442296.19.0.214732274226.issue1195@psf.upfronthosting.co.za>
2011-03-18 09:58:15vstinnerlinkissue1195 messages
2011-03-18 09:58:15vstinnercreate