#NEWLINE# def cookies_as_str( cj ) : #NEWLINE# #INDENT# s = '' #NEWLINE# c = cj . _cookies #NEWLINE# for domain in c : #NEWLINE# #INDENT# s += ( '{%s: ' % domain ) #NEWLINE# for path in c [ domain ] : #NEWLINE# #INDENT# s += ( '{%s: ' % path ) #NEWLINE# for cookie in c [ domain ] [ path ] : #NEWLINE# #INDENT# s += ( '{%s=%s}' % ( cookie , c [ domain ] [ c ] [ cookie ] . value ) ) #NEWLINE# #UNINDENT# s += '}' #NEWLINE# #UNINDENT# s += '} ' #NEWLINE# #UNINDENT# return s