#NEWLINE# @ classmethod #NEWLINE# def encode_dict( cls , out , key , dict_value ) : #NEWLINE# #INDENT# n = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( k , v ) in six . iteritems ( dict_value ) : #NEWLINE# #INDENT# k = cls . _utf8 ( k ) #NEWLINE# v = cls . _utf8 ( v ) #NEWLINE# n [ ( '%s[%s]' % ( key , k ) ) ] = v #NEWLINE# #UNINDENT# out . extend ( cls . _encode_inner ( out ) )