caches: fixed unicode mismatch with types
This commit is contained in:
parent
5cfea23393
commit
85f6a432fb
1 changed files with 1 additions and 1 deletions
|
|
@ -300,7 +300,7 @@ class BaseRedisBackend(redis_backend.RedisBackend):
|
|||
|
||||
def get_mutex(self, key):
|
||||
if self.distributed_lock:
|
||||
lock_key = redis_backend.u(u'_lock_{0}'.format(safe_unicode(key)))
|
||||
lock_key = u'_lock_{0}'.format(safe_unicode(key))
|
||||
return get_mutex_lock(self.client, lock_key, self._lock_timeout,
|
||||
auto_renewal=self._lock_auto_renewal)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue