##// END OF EJS Templates
caches: fixed unicode mismatch with types
super-admin -
r1016:7e19e5bc default
parent child Browse files
Show More
@@ -265,7 +265,7 b' class BaseRedisBackend(redis_backend.Red'
265
265
266 def get_mutex(self, key):
266 def get_mutex(self, key):
267 if self.distributed_lock:
267 if self.distributed_lock:
268 lock_key = redis_backend.u(u'_lock_{0}'.format(safe_unicode(key)))
268 lock_key = u'_lock_{0}'.format(safe_unicode(key))
269 return get_mutex_lock(self.client, lock_key, self._lock_timeout,
269 return get_mutex_lock(self.client, lock_key, self._lock_timeout,
270 auto_renewal=self._lock_auto_renewal)
270 auto_renewal=self._lock_auto_renewal)
271 else:
271 else:
General Comments 0
You need to be logged in to leave comments. Login now