cpython: fa3227c3cf87 (original) (raw)

Mercurial > cpython

changeset 69993:fa3227c3cf87 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. [#1195]

Victor Stinner victor.stinner@haypocalc.com
date Tue, 10 May 2011 00:19:53 +0200
parents 4a3d5198a408
children b5914bfb4d04 b7abf0590e1c
files Misc/NEWS Parser/myreadline.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-)[+] [-] Misc/NEWS 3 Parser/myreadline.c 1

line wrap: on

line diff

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -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,

--- a/Parser/myreadline.c +++ b/Parser/myreadline.c @@ -73,6 +73,7 @@ my_fgets(char *buf, int len, FILE fp) } #endif / MS_WINDOWS */ if (feof(fp)) {

#ifdef EINTR