diff options
Diffstat (limited to 'Python/sigcheck.c')
-rw-r--r-- | Python/sigcheck.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Python/sigcheck.c b/Python/sigcheck.c index a0f8179794..81785eff5f 100644 --- a/Python/sigcheck.c +++ b/Python/sigcheck.c @@ -36,15 +36,14 @@ PERFORMANCE OF THIS SOFTWARE. overridden (at link time) by a more powerful version implemented in signalmodule.c. */ -#include "allobjects.h" -#include "intrcheck.h" +#include "Python.h" /* ARGSUSED */ int -sigcheck() +PyErr_CheckSignals() { - if (!intrcheck()) + if (!PyOS_InterruptOccurred()) return 0; - err_set(KeyboardInterrupt); + PyErr_SetNone(PyExc_KeyboardInterrupt); return -1; } |