#NEWLINE# def dump_data( self , mapping ) : #NEWLINE# #INDENT# tokey = self . pickler . dumps #NEWLINE# dumps = self . value_pickler . dumps #NEWLINE# if isinstance ( mapping , dict ) : #NEWLINE# #INDENT# mapping = iteritems ( mapping ) #NEWLINE# #UNINDENT# p = self . pair #NEWLINE# data = [ ] #NEWLINE# for pair in mapping : #NEWLINE# #INDENT# if ( not isinstance ( pair , tuple ) ) : #NEWLINE# #INDENT# pair = ( pair , ) #NEWLINE# #UNINDENT# ( k , v ) = p ( p ) #NEWLINE# data . append ( ( tokey ( k ) , dumps ( v ) ) ) #NEWLINE# #UNINDENT# return data