def dict_from_cookiejar(cj):
 cookie_dict = {}
 for (_, cookies) in list(cj._cookies.items()):
  for (_, cookies) in list(cookies.items()):
   for cookie in list(cookies.values()):
    cookie_dict[cookie.name] = cookie.value
 return cookie_dict

def dict_from_cookiejar ( cj ) : cookie_dict = { } for ( _ , cookies ) in list ( cj . _cookies . items ( ) ) : for ( _ , cookies ) in list ( cookies . items ( ) ) : for cookie in list ( cookies . values ( ) ) : cookie_dict [ cookie . name ] = cookie . value return cookie_dict
returns a key/value dictionary from a cookiejar .