#NEWLINE# def setup_hooks( self , hook_registry ) : #NEWLINE# #INDENT# for ( hook_name , subhooks ) in self . pattern . active_hooks ( ) : #NEWLINE# #INDENT# hook = hook_registry . create ( hook_name ) #NEWLINE# self . hooks [ hook_name ] = self #NEWLINE# self . subhooks [ hook_name ] = subhooks