Staging
v0.5.1
https://github.com/python/cpython
Revision 42f92da307dfa466bc7d665c4e717af47c27d393 authored by Guido van Rossum on 16 April 2001, 00:28:21 UTC, committed by Guido van Rossum on 16 April 2001, 00:28:21 UTC
than from module pickletester.  Using the latter turned out to cause
the test to break when invoked as "import test.test_pickle" or "import
test.autotest".
1 parent 13324e1
Raw File
Tip revision: 42f92da307dfa466bc7d665c4e717af47c27d393 authored by Guido van Rossum on 16 April 2001, 00:28:21 UTC
Change the test data to ask for class C from module __main__ rather
Tip revision: 42f92da
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