Ticket #5589: allow_binary_data_in_memcache.diff
File allow_binary_data_in_memcache.diff, 578 bytes (added by , 17 years ago) |
---|
-
django/core/cache/backends/memcached.py
22 22 return default 23 23 else: 24 24 if isinstance(val, basestring): 25 return smart_unicode(val) 25 try: 26 return smart_unicode(val) 27 except UnicodeDecodeError: 28 return val 26 29 else: 27 30 return val 28 31