mirror of https://github.com/python/cpython
(Merge 3.1) 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
b47553a19b
commit
2c585f607e
|
@ -9,6 +9,9 @@ What's New in Python 2.7.2?
|
|||
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 #8651: PyArg_Parse*() functions raise an OverflowError if the file
|
||||
doesn't have PY_SSIZE_T_CLEAN define and the size doesn't fit in an int
|
||||
(length bigger than 2^31-1 bytes).
|
||||
|
|
|
@ -77,6 +77,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