<s> """<STR_LIT>""" <EOL> __all__ = [ "<STR_LIT>" ] <EOL> import sys <EOL> _exithandlers = [ ] <EOL> def _run_exitfuncs ( ) : <EOL> """<STR_LIT>""" <EOL> exc_info = None <EOL> while _exithandlers : <EOL> func , targs , kargs = _exithandlers . pop ( ) <EOL> try : <EOL> func ( * targs , ** kargs ) <EOL> except SystemExit : <EOL> exc_info = sys . exc_info ( ) <EOL> except : <EOL> import traceback <EOL> print >> sys . stderr , "<STR_LIT>" <EOL> traceback . print_exc ( ) <EOL> exc_info = sys . exc_info ( ) <EOL> if exc_info is not None : <EOL> raise exc_info [ <NUM_LIT:0> ] , exc_info [ <NUM_LIT:1> ] , exc_info [ <NUM_LIT:2> ] <EOL> def register ( func , * targs , ** kargs ) : <EOL> """<STR_LIT>""" <EOL> _exithandlers . append ( ( func , targs , kargs ) ) <EOL> return func <EOL> if hasattr ( sys , "<STR_LIT>" ) : <EOL> register ( sys . exitfunc ) <EOL> sys . exitfunc = _run_exitfuncs <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> def x1 ( ) : <EOL> print "<STR_LIT>" <EOL> def x2 ( n ) : <EOL> print "<STR_LIT>" % ( n , ) <EOL> def x3 ( n , kwd = None ) : <EOL> print "<STR_LIT>" % ( n , kwd ) <EOL> register ( x1 ) <EOL> register ( x2 , <NUM_LIT:12> ) <EOL> register ( x3 , <NUM_LIT:5> , "<STR_LIT:bar>" ) <EOL> register ( x3 , "<STR_LIT>" ) </s>
