(cj)
return cookie_dict
Returns a key/value dictionary from a CookieJar.

    :param cj: CookieJar object to extract cookies from.
    :rtype: dict
Returns a key/value dictionary from a CookieJar.
Returns a key / value dictionary from a CookieJar .
def dict_from_cookiejar(cj):
    """Returns a key/value dictionary from a CookieJar.

    :param cj: CookieJar object to extract cookies from.
    :rtype: dict
    """

    cookie_dict = {}

    for cookie in cj:
        cookie_dict[cookie.name] = cookie.value

    return cookie_dict
def dict_from_cookiejar ( cj ) : cookie_dict = { } for cookie in cj : cookie_dict [ cookie . name ] = cookie . value return cookie_dict