rfc@sddlZddlZddlmZeZdefdYZejZ dZ dZ da dZddZdS( iN(twrapst_InterruptHandlercBseZdZdZRS(cCsst|_||_t|trf|tjkr<tj}qf|tjkrWd}qft dn||_ 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|_xtjD]}|jqcWdS(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