#NEWLINE# def load_cookie( self , resp ) : #NEWLINE# #INDENT# cookie = http_cookies . SimpleCookie ( ) #NEWLINE# try : #NEWLINE# #INDENT# cookie . load ( resp . headers [ 'Set-Cookie' ] ) #NEWLINE# return cookie #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# return None