#NEWLINE# def wait( self , event_id , timeout = 1 ) : #NEWLINE# #INDENT# 'Wait for an event to be set for up to `timeout` seconds. If\n        `timeout` is None, block until the event is set. If the event is\n        invalid, None will be returned, otherwise False is used to indicate\n        the event is still not set when using a timeout.\n\n        :param int event_id: The event to wait for\n        :param float timeout: The number of seconds to wait\n\n        ' #NEWLINE# if ( event_id not in self . _events ) : #NEWLINE# #INDENT# LOGGER . debug ( 'Event does not exist: %s' , description ( event_id ) ) #NEWLINE# return None #NEWLINE# #UNINDENT# LOGGER . debug ( 'Waiting for %i seconds on event: %s' , timeout , description ( self ) ) #NEWLINE# return self . _events [ event_id ] . wait ( timeout )