From 614c578dec856dc8a255b27a63559c6912ddc2e8 Mon Sep 17 00:00:00 2001 From: Richard Oudkerk Date: Wed, 3 Apr 2013 13:44:50 +0100 Subject: Issue #17619: Make input() check for Ctrl-C correctly on Windows. --- Python/bltinmodule.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Python') diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index bf90aba3a2..75afa860f1 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -1733,6 +1733,7 @@ builtin_input(PyObject *self, PyObject *args) } s = PyOS_Readline(stdin, stdout, prompt); if (s == NULL) { + PyErr_CheckSignals(); if (!PyErr_Occurred()) PyErr_SetNone(PyExc_KeyboardInterrupt); goto _readline_errors; -- cgit v1.2.1