#NEWLINE# def wait( self , timeout = None ) : #NEWLINE# #INDENT# kw = dict ( waits = [ self ] ) #NEWLINE# if timeout : #NEWLINE# #INDENT# kw [ 'sleep' ] = timeout #NEWLINE# #UNINDENT# ( mark , data ) = first ( ** kw ) #NEWLINE# if ( mark != data ) : #NEWLINE# #INDENT# raise EventTimeout ( )