#NEWLINE# @ timeout #NEWLINE# @ defer . inlineCallbacks #NEWLINE# def update_many( self , filter , update , upsert = False , **kwargs ) : #NEWLINE# #INDENT# validate_ok_for_update ( update ) #NEWLINE# raw_response = ( yield self . _update ( filter , update , upsert , multi = True , ** kwargs ) ) #NEWLINE# defer . returnValue ( UpdateResult ( raw_response , self . write_concern . acknowledged ) )