#NEWLINE# def _flattern_headers( self , headers ) : #NEWLINE# #INDENT# result = [ ] #NEWLINE# for pair in headers : #NEWLINE# #INDENT# name = pair [ 0 ] #NEWLINE# value = pair [ 1 ] #NEWLINE# if ( not isinstance ( value , six . string_types ) ) : #NEWLINE# #INDENT# value = str ( value ) #NEWLINE# #UNINDENT# result . append ( [ name , value ] ) #NEWLINE# #UNINDENT# return result