Commit 6f2b9e9e authored by Vincent Ardisson's avatar Vincent Ardisson Committed by Romain Bignon

python3: StatesMixin cookies should be str

parent c90cf0b6
......@@ -877,7 +877,7 @@ class StatesMixin(object):
state = {}
if hasattr(self, 'page') and self.page:
state['url'] = self.page.url
state['cookies'] = base64.b64encode(zlib.compress(pickle.dumps(self.session.cookies, -1)))
state['cookies'] = base64.b64encode(zlib.compress(pickle.dumps(self.session.cookies, -1))).decode('ascii')
for attrname in self.__states__:
try:
state[attrname] = getattr(self, attrname)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment