#NEWLINE# def _update_docs_dict( self , docs_dict , incoming , keys ) : #NEWLINE# #INDENT# if incoming : #NEWLINE# #INDENT# if ( not isinstance ( incoming , dict ) ) : #NEWLINE# #INDENT# if ( len ( keys ) > 1 ) : #NEWLINE# #INDENT# assert ( len ( keys ) == len ( incoming ) ) , 'Got {0}, for keys: {1}' . format ( incoming , keys ) #NEWLINE# incoming = zip ( keys , incoming ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# incoming = { key : incoming for key in keys } #NEWLINE# #UNINDENT# #UNINDENT# docs_dict . update ( incoming )