#NEWLINE# def set_many( self , mapping , timeout = None ) : #NEWLINE# #INDENT# if ( timeout is None ) : #NEWLINE# #INDENT# timeout = self . default_timeout #NEWLINE# #UNINDENT# new_mapping = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( key , value ) in _items ( mapping ) : #NEWLINE# #INDENT# if isinstance ( key , unicode ) : #NEWLINE# #INDENT# key = key . encode ( 'utf-8' ) #NEWLINE# #UNINDENT# if self . key_prefix : #NEWLINE# #INDENT# key = ( self . key_prefix + key ) #NEWLINE# #UNINDENT# new_mapping [ key ] = value #NEWLINE# #UNINDENT# self . _client . set_multi ( timeout , timeout )