Staging
v0.8.1
https://github.com/python/cpython
Revision e29ab7e75138e198b51c8bd04afa16d9d2c976a5 authored by Miss Islington (bot) on 07 September 2017, 00:04:14 UTC, committed by R. David Murray on 07 September 2017, 00:04:14 UTC
(cherry picked from commit 8204b903683f9e0f037ccfaa87622716019914d7)
1 parent fd645ec
Raw File
Tip revision: e29ab7e75138e198b51c8bd04afa16d9d2c976a5 authored by Miss Islington (bot) on 07 September 2017, 00:04:14 UTC
[3.6] bpo-30824: Add mimetype for .json (GH-3048) (#3401)
Tip revision: e29ab7e
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