#NEWLINE# def _pool_run( self , which , func , * args , **kwargs ) : #NEWLINE# #INDENT# pool = getattr ( self , ( which + '_pool' ) , None ) #NEWLINE# if pool : #NEWLINE# #INDENT# ret = pool . spawn ( func , * args , ** kwargs ) #NEWLINE# return ret . get ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return func ( * ret , ** kwargs )