From b6e69b5015faefc3ab1003f28f514cac58308c82 Mon Sep 17 00:00:00 2001 From: IceArmy Date: Tue, 4 Oct 2011 11:16:44 -0700 Subject: [PATCH] Fix bug in CookieJar where QSettings expected str, but got QByteArray instead (#10) --- python/pyphantomjs/cookiejar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pyphantomjs/cookiejar.py b/python/pyphantomjs/cookiejar.py index 8d5bcd14..2a06ab3a 100644 --- a/python/pyphantomjs/cookiejar.py +++ b/python/pyphantomjs/cookiejar.py @@ -33,7 +33,7 @@ class CookieJar(QNetworkCookieJar): settings.beginGroup(url.host()) for cookie in cookieList: - settings.setValue(cookie.name(), cookie.value()) + settings.setValue(str(cookie.name()), str(cookie.value())) settings.sync()