#NEWLINE# def resolve_hook( self ) : #NEWLINE# #INDENT# for ( method , args , kwargs ) in self . hook : #NEWLINE# #INDENT# if ( args is None ) : #NEWLINE# #INDENT# args = ( ) #NEWLINE# #UNINDENT# if ( kwargs is None ) : #NEWLINE# #INDENT# kwargs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# method ( * args , ** kwargs ) #NEWLINE# #UNINDENT# for sub in self . submodule . values ( ) : #NEWLINE# #INDENT# sub . resolve_hook ( )