#NEWLINE# def _get_request_cookies( self , jar , request ) : #NEWLINE# #INDENT# if isinstance ( x . cookies , dict ) : #NEWLINE# #INDENT# cookie_list = [ { #NEWLINE# #INDENT# 'name' : k , #NEWLINE# 'value' : v , #NEWLINE# #UNINDENT# } for ( k , v ) in six . iteritems ( request . cookies ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# cookie_list = request . cookies #NEWLINE# #UNINDENT# cookies = [ self . _format_cookie ( x ) for x in cookie_list ] #NEWLINE# headers = { #NEWLINE# #INDENT# 'Set-Cookie' : cookies , #NEWLINE# #UNINDENT# } #NEWLINE# response = Response ( request . url , headers = headers ) #NEWLINE# return jar . make_cookies ( response , request )