tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
L\¬Qc@sÀdZdgZddlZgZd„Zd„ZeedƒrReejƒnee_edkr¼d„Z    d    „Z
dd
„Z ee    ƒee
d ƒee d d ƒee dƒndS(sœ
atexit.py - allow programmer to define multiple exit functions to be executed
upon normal program termination.
 
One public function, register, is defined.
tregisteriÿÿÿÿNcCs¹d}x…trtjƒ\}}}y|||ŽWq    tk
rTtjƒ}q    ddl}tjdIJ|jƒtjƒ}q    Xq    W|dk    rµ|d|d|d‚ndS(s‰run any registered exit functions
 
    _exithandlers is traversed in reverse order so functions are executed
    last in, first out.
    iÿÿÿÿNsError in atexit._run_exitfuncs:iii(    tNonet _exithandlerstpopt
SystemExittsystexc_infot    tracebacktstderrt    print_exc(RtfuncttargstkargsR((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/atexit.pyt_run_exitfuncs s       
 cOstj|||fƒ|S(sregister a function to be executed upon normal program termination
 
    func - function to be called at exit
    targs - optional arguments to pass to func
    kargs - optional keyword arguments to pass to func
 
    func is returned to facilitate usage as a decorator.
    (Rtappend(R
R R ((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/atexit.pyR%s    texitfunct__main__cCs    dGHdS(Ns
running x1((((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/atexit.pytx17scCsd|fGHdS(Nsrunning x2(%r)((tn((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/atexit.pytx29scCsd||fGHdS(Nsrunning x3(%r, kwd=%r)((Rtkwd((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/atexit.pytx3;si itbars no kwd args( t__doc__t__all__RRR RthasattrRt__name__RRRR(((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/atexit.pyt<module>s