mirror of https://github.com/python/cpython
Issue #1195: Fix input() if it is interrupted by CTRL+d and then CTRL+c,
clear the end-of-file indicator after CTRL+d.
This commit is contained in:
parent
f9756c2336
commit
4755ab010f
|
@ -10,6 +10,9 @@ What's New in Python 3.1.4?
|
|||
Core and Builtins
|
||||
-----------------
|
||||
|
||||
- Issue #1195: Fix input() if it is interrupted by CTRL+d and then CTRL+c,
|
||||
clear the end-of-file indicator after CTRL+d.
|
||||
|
||||
- Issue #9756: When calling a method descriptor or a slot wrapper descriptor,
|
||||
the check of the object type doesn't read the __class__ attribute anymore.
|
||||
Fix a crash if a class override its __class__ attribute (e.g. a proxy of the
|
||||
|
|
|
@ -73,6 +73,7 @@ my_fgets(char *buf, int len, FILE *fp)
|
|||
}
|
||||
#endif /* MS_WINDOWS */
|
||||
if (feof(fp)) {
|
||||
clearerr(fp);
|
||||
return -1; /* EOF */
|
||||
}
|
||||
#ifdef EINTR
|
||||
|
|
Loading…
Reference in New Issue