def to_pycookiejar(QtCookiejar): cj = CookieJar() for c in QtCookiejar.allCookies(): cj.set_cookie(to_py_cookie(c)) return cj