Staging
v0.5.1
https://github.com/python/cpython
Revision 90a79e84a369ae000d93a379ff322f0b01259c65 authored by Georg Brandl on 19 November 2008, 11:34:07 UTC, committed by Georg Brandl on 19 November 2008, 11:34:07 UTC
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67278 | georg.brandl | 2008-11-19 08:59:09 +0100 (Wed, 19 Nov 2008) | 2 lines

  Try to fix problems with verbatim.
........
1 parent fc1e0ef
Raw File
Tip revision: 90a79e84a369ae000d93a379ff322f0b01259c65 authored by Georg Brandl on 19 November 2008, 11:34:07 UTC
Merged revisions 67278 via svnmerge from
Tip revision: 90a79e8
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