Commit a768c616 authored by blackbrrr's avatar blackbrrr

pickle.loads is now given a string instead of unicode

parent a2afc3cb
......@@ -51,8 +51,13 @@ class CacheClass(BaseCache):
if value is None:
return default
else:
# picke doesn't want a unicode!
value = smart_str(value)
# hydrate that pickle
value = pickle.loads(value)
if isinstance(val, basestring):
if isinstance(value, basestring):
return smart_unicode(value)
else:
return value
......
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