#NEWLINE# def log( self , level , msg , **kwargs ) : #NEWLINE# #INDENT# ' thread-safe logging ' #NEWLINE# if kwargs . pop ( 'exc_info' , False ) : #NEWLINE# #INDENT# kwargs [ 'exc_info' ] = sys . exc_info ( ) #NEWLINE# #UNINDENT# log = functools . partial ( self . _log , level , msg , ** kwargs ) #NEWLINE# sublime . set_timeout ( log , 0 )