Skip to content

Commit 36b76cc

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a2d9d2f commit 36b76cc

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

django_redis/client/herd.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def set(
6969
nx=False,
7070
xx=False,
7171
):
72-
7372
if timeout is DEFAULT_TIMEOUT:
7473
timeout = self._backend.default_timeout
7574

django_redis/client/sharded.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ def lock(
205205
client=None,
206206
thread_local=True,
207207
):
208-
209208
if client is None:
210209
key = self.make_key(key, version=version)
211210
client = self.get_server(key)

django_redis/pool.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111

1212
class ConnectionFactory:
13-
1413
# Store connection pool by cache backend options.
1514
#
1615
# _pools is a process-global, as otherwise _pools is cleared every time

tests/test_backend.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,6 @@ def test_ttl(self, cache: RedisCache):
541541
assert ttl == 0
542542

543543
def test_pttl(self, cache: RedisCache):
544-
545544
# Test pttl
546545
cache.set("foo", "bar", 10)
547546
ttl = cache.pttl("foo")
@@ -599,7 +598,6 @@ def test_pexpire(self, cache: RedisCache):
599598
assert cache.pexpire("not-existent-key", 20500) is False
600599

601600
def test_pexpire_at(self, cache: RedisCache):
602-
603601
# Test settings expiration time 1 hour ahead by datetime.
604602
cache.set("foo", "bar", timeout=None)
605603
expiration_time = datetime.datetime.now() + timedelta(hours=1)
@@ -625,7 +623,6 @@ def test_pexpire_at(self, cache: RedisCache):
625623
assert cache.pexpire_at("not-existent-key", expiration_time) is False
626624

627625
def test_expire_at(self, cache: RedisCache):
628-
629626
# Test settings expiration time 1 hour ahead by datetime.
630627
cache.set("foo", "bar", timeout=None)
631628
expiration_time = datetime.datetime.now() + timedelta(hours=1)

0 commit comments

Comments
 (0)