Commits

Mike Bayer committed c557371 Merge

Merged in znanja/dogpile.cache/fix-redis-py32 (pull request #3)

Use compat.u() instead of u"" in RedisBackend

  • Participants
  • Parent commits d3c7df5, f8108da

Comments (0)

Files changed (1)

File dogpile/cache/backends/redis.py

 
 from __future__ import absolute_import
 from dogpile.cache.api import CacheBackend, NO_VALUE
-from dogpile.cache.compat import pickle
+from dogpile.cache.compat import pickle, u
 
 redis = None
 
 
     def get_mutex(self, key):
         if self.distributed_lock:
-            return self.client.lock(u"_lock{}".format(key), self.lock_timeout,
+            return self.client.lock(u('_lock{}').format(key), self.lock_timeout,
                                     self.lock_sleep)
         else:
             return None