#NEWLINE# def make_handler( self , result , coro = True , exc = False ) : #NEWLINE# #INDENT# if ( result is None ) : #NEWLINE# #INDENT# result = [ ] #NEWLINE# #UNINDENT# output = result #NEWLINE# def handler( msg , s ) : #NEWLINE# #INDENT# if exc : #NEWLINE# #INDENT# raise ValueError ( ( msg , s ) ) #NEWLINE# #UNINDENT# output . append ( ( msg , s ) ) #NEWLINE# #UNINDENT# if coro : #NEWLINE# #INDENT# return asyncio . coroutine ( handler ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return handler