diff --git a/django_redis/client/default.py b/django_redis/client/default.py index 420fb618..b0827f72 100644 --- a/django_redis/client/default.py +++ b/django_redis/client/default.py @@ -328,7 +328,7 @@ def expire( # for some strange reason mypy complains, # saying that timeout type is float | timedelta - return client.expire(key, timeout) + return client.expire(key, timeout) def pexpire( self, @@ -349,7 +349,7 @@ def pexpire( # is fixed. # for some strange reason mypy complains, # saying that timeout type is float | timedelta - return bool(client.pexpire(key, timeout)) + return bool(client.pexpire(key, timeout)) def pexpire_at( self, diff --git a/django_redis/pool.py b/django_redis/pool.py index 780f2e4b..7e01f782 100644 --- a/django_redis/pool.py +++ b/django_redis/pool.py @@ -176,11 +176,11 @@ def get_connection_pool(self, params): new_query = urlencode(query_params, doseq=True) new_url = urlunparse( - (url.scheme,url.netloc,url.path,url.params,new_query,url.fragment) + (url.scheme, url.netloc, url.path, url.params, new_query, url.fragment) ) cp_params.update( - service_name=url.hostname, sentinel_manager=self._sentinel,url=new_url + service_name=url.hostname, sentinel_manager=self._sentinel, url=new_url ) return super().get_connection_pool(cp_params)