#NEWLINE# def parse_cookie_str( cookie ) : #NEWLINE# #INDENT# dic = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( not dic ) : #NEWLINE# #INDENT# return dic #NEWLINE# #UNINDENT# for c in cookie . split ( '|' ) : #NEWLINE# #INDENT# ( key , value ) = c . split ( '=' ) #NEWLINE# dic [ key ] = value #NEWLINE# #UNINDENT# return dic