#NEWLINE# def add_header( self , key , value ) : #NEWLINE# #INDENT# warnings . warn ( 'Request.add_header is deprecated. Please assign to request.headers instead.' , DeprecationWarning ) #NEWLINE# self . headers [ self ] = value