mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-20 07:45:21 +01:00
Fix for a corner-case global_cache written by py2, then read by py3 bug.
This commit is contained in:
parent
868e120ffc
commit
60651cb15b
1 changed files with 2 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ from .six.moves.urllib.error import HTTPError
|
|||
from .six.moves import http_cookiejar as cl
|
||||
from .six import text_type as unicode
|
||||
from .six import string_types as basestring
|
||||
from .six import ensure_binary
|
||||
from .six import ensure_binary, ensure_text
|
||||
|
||||
import time
|
||||
import logging
|
||||
|
|
@ -958,7 +958,7 @@ class Configuration(configparser.SafeConfigParser):
|
|||
|
||||
def _set_to_pagecache(self,cachekey,data,redirectedurl):
|
||||
if self.use_pagecache:
|
||||
self.get_pagecache()[cachekey] = (data,redirectedurl)
|
||||
self.get_pagecache()[cachekey] = (data,ensure_text(redirectedurl))
|
||||
if self.save_cache_file:
|
||||
with open(self.save_cache_file,'wb') as jout:
|
||||
pickle.dump(self.get_pagecache(),jout,protocol=2)
|
||||
|
|
|
|||
Loading…
Reference in a new issue