#NEWLINE# def _bootstrap_inner( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . _set_ident ( ) #NEWLINE# self . _Thread__started . set ( ) #NEWLINE# with _active_limbo_lock : #NEWLINE# #INDENT# _active [ self . _Thread__ident ] = self #NEWLINE# del _limbo [ self ] #NEWLINE# #UNINDENT# if _trace_hook : #NEWLINE# #INDENT# _sys . settrace ( _trace_hook ) #NEWLINE# #UNINDENT# if _profile_hook : #NEWLINE# #INDENT# _sys . setprofile ( _profile_hook ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . run ( ) #NEWLINE# #UNINDENT# except SystemExit : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# if _sys : #NEWLINE# #INDENT# _sys . stderr . write ( ( 'Exception in thread %s:\n%s\n' % ( self . name , _format_exc ( ) ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( exc_type , exc_value , exc_tb ) = self . _exc_info ( ) #NEWLINE# try : #NEWLINE# #INDENT# self . _stderr . write ( ( ( 'Exception in thread ' + self . name ) + ' (most likely raised during interpreter shutdown):' ) ) #NEWLINE# self . _stderr . write ( 'Traceback (most recent call last):' ) #NEWLINE# while exc_tb : #NEWLINE# #INDENT# self . _stderr . write ( ( '  File "%s", line %s, in %s' % ( exc_tb . tb_frame . f_code . co_filename , exc_tb . tb_lineno , exc_tb . tb_frame . f_code . co_name ) ) ) #NEWLINE# exc_tb = exc_tb . tb_next #NEWLINE# #UNINDENT# self . _stderr . write ( ( '%s: %s' % ( exc_type , exc_value ) ) ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# del exc_type , exc_value , exc_tb #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# finally : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# finally : #NEWLINE# #INDENT# with _active_limbo_lock : #NEWLINE# #INDENT# self . _Thread__stop ( ) #NEWLINE# try : #NEWLINE# #INDENT# del _active [ self . _Thread__ident ] #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass