{fc@sddlZddlZddlmZeZdefdYZejZ dZ dZ da dZddZdS( iN(twrapst_InterruptHandlercBseZdZdZRS(cCsyt|_||_t|ttfrl|tjkrBtj}ql|tj kr]d}qlt 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 isinstancetinttlongtsignaltSIG_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