cpython: 3b1b06570cf9 (original) (raw)

Mercurial > cpython

changeset 70534:3b1b06570cf9 2.7

Issue #12016: my_fgets() now always clears errors before calling fgets(). Fix the following case: sys.stdin.read() stopped with CTRL+d (end of file), raw_input() interrupted by CTRL+c. [#12016]

Victor Stinner victor.stinner@haypocalc.com
date Mon, 30 May 2011 23:44:13 +0200
parents 439396b06416
children b40dac6390a9
files Misc/NEWS Parser/myreadline.c
diffstat 2 files changed, 17 insertions(+), 0 deletions(-)[+] [-] Misc/NEWS 16 Parser/myreadline.c 1

line wrap: on

line diff

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -1,6 +1,22 @@ Python News +++++++++++ +What's New in Python 2.7.3? +=========================== + +Release date: XXXX-XX-XX + +Core and Builtins +----------------- + +- Issue #12016: my_fgets() now always clears errors before calling fgets(). Fix

--- a/Parser/myreadline.c +++ b/Parser/myreadline.c @@ -44,6 +44,7 @@ my_fgets(char *buf, int len, FILE *fp) if (PyOS_InputHook != NULL) (void)(PyOS_InputHook)(); errno = 0;