Current File : //opt/RZpython2/lib/python2.7/atexit.pyc |
�
��#ec @ s� d Z d g Z d d l Z g Z d � Z d � Z e e d � rR e e j � n e e _ e d k r� d � Z d � Z
d d
� Z e e � e e
d � e e d d
� e e d � n d S( s�
atexit.py - allow programmer to define multiple exit functions to be executed
upon normal program termination.
One public function, register, is defined.
t registeri����Nc C s� d } x� t r� t j � \ } } } y | | | � Wq t k
rT t j � } q d d l } t j d IJ| j � t j � } q Xq W| d k r� | d | d | d � n d S( s� run any registered exit functions
_exithandlers is traversed in reverse order so functions are executed
last in, first out.
i����Ns Error in atexit._run_exitfuncs:i i i ( t Nonet
_exithandlerst popt
SystemExitt syst exc_infot tracebackt stderrt print_exc( R t funct targst kargsR ( ( s&