#NEWLINE# def _set_length( self , length ) : #NEWLINE# #INDENT# self . _cond . acquire ( ) #NEWLINE# try : #NEWLINE# #INDENT# self . _length = length #NEWLINE# if ( self . _index == self . _length ) : #NEWLINE# #INDENT# self . _cond . notify ( ) #NEWLINE# del self . _cache [ length . _job ] #NEWLINE# #UNINDENT# #UNINDENT# finally : #NEWLINE# #INDENT# self . _cond . release ( )