Commit 1bfb6b5e authored by Mark Ng's avatar Mark Ng

encoding strings confuses the pickle

parent d88215f3
......@@ -19,8 +19,6 @@ class CacheClass(BaseCache):
return smart_str(raw_key)
def _prepare_value(self, value):
if isinstance(value, unicode):
value = value.encode('utf-8')
return value
def add(self, key, value, timeout=0):
......
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