#NEWLINE# def execute( self ) : #NEWLINE# #INDENT# all_kwargs = self . kwargs #NEWLINE# self . results = results = [ ] #NEWLINE# firstresult = self . specopts . get ( 'firstresult' ) #NEWLINE# while self . hook_impls : #NEWLINE# #INDENT# hook_impl = self . hook_impls . pop ( ) #NEWLINE# args = [ all_kwargs [ argname ] for argname in hook_impl . argnames ] #NEWLINE# if hook_impl . hookwrapper : #NEWLINE# #INDENT# return _wrapped_call ( hook_impl . function ( * args ) , self . execute ) #NEWLINE# #UNINDENT# res = hook_impl . function ( * args ) #NEWLINE# if ( res is not None ) : #NEWLINE# #INDENT# if firstresult : #NEWLINE# #INDENT# return res #NEWLINE# #UNINDENT# results . append ( res ) #NEWLINE# #UNINDENT# #UNINDENT# if ( not firstresult ) : #NEWLINE# #INDENT# return results