#NEWLINE# def wait( self , timeout = None ) : #NEWLINE# #INDENT# 'Block until the instance is ready.' #NEWLINE# with timeout . _condition : #NEWLINE# #INDENT# self . _condition . wait ( timeout ) #NEWLINE# #UNINDENT# return ( self . _exception is not _NONE )