Staging
v0.5.1
https://github.com/python/cpython
Revision b39a7481ee7e6166d6d2b252a7a514b1f6553dfa authored by Xiang Zhang on 19 June 2017, 14:12:45 UTC, committed by GitHub on 19 June 2017, 14:12:45 UTC
1 parent c3c9db8
Raw File
Tip revision: b39a7481ee7e6166d6d2b252a7a514b1f6553dfa authored by Xiang Zhang on 19 June 2017, 14:12:45 UTC
bpo-30176: Add missing curses cell attributes constants (#2278)
Tip revision: b39a748
sigcheck.c

/* Sigcheck is similar to intrcheck() but sets an exception when an
   interrupt occurs.  It can't be in the intrcheck.c file since that
   file (and the whole directory it is in) doesn't know about objects
   or exceptions.  It can't be in errors.c because it can be
   overridden (at link time) by a more powerful version implemented in
   signalmodule.c. */

#include "Python.h"

/* ARGSUSED */
int
PyErr_CheckSignals(void)
{
	if (!PyOS_InterruptOccurred())
		return 0;
	PyErr_SetNone(PyExc_KeyboardInterrupt);
	return -1;
}
back to top