#NEWLINE# def call( self , name , * args , **kwargs ) : #NEWLINE# #INDENT# for listener in ( self . listeners + [ self ] ) : #NEWLINE# #INDENT# if hasattr ( listener , name ) : #NEWLINE# #INDENT# if getattr ( listener , name ) ( * args , ** kwargs ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if ( name in [ 'setup' , 'teardown' ] ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# scene = self . current_scene #NEWLINE# if ( scene is not None ) : #NEWLINE# #INDENT# scene . call ( name , * args , ** kwargs )