ó r”þfc@sddlZddlZddlmZeZdefd„ƒYZejƒZ d„Z d„Z da d„Zdd„ZdS( iÿÿÿÿN(twrapst_InterruptHandlercBseZd„Zd„ZRS(cCsst|_||_t|tƒrf|tjkr<tj}qf|tjkrWd„}qft dƒ‚n||_ dS(NcSsdS(N((t unused_signumt unused_frame((s(/usr/lib64/python2.7/unittest/signals.pytdefault_handlerssYexpected SIGINT signal handler to be signal.SIG_IGN, signal.SIG_DFL, or a callable object( tFalsetcalledtoriginal_handlert isinstancetinttsignaltSIG_DFLtdefault_int_handlertSIG_IGNt TypeErrorR(tselfR((s(/usr/lib64/python2.7/unittest/signals.pyt__init__ s    cCs{tjtjƒ}||k r1|j||ƒn|jrM|j||ƒnt|_xtjƒD]}|jƒqcWdS(N( R t getsignaltSIGINTRRtTruet_resultstkeyststop(Rtsignumtframetinstalled_handlertresult((s(/usr/lib64/python2.7/unittest/signals.pyt__call__s   (t__name__t __module__RR(((s(/usr/lib64/python2.7/unittest/signals.pyR s cCsdt|s