summaryrefslogtreecommitdiff
path: root/redis/retry.py
diff options
context:
space:
mode:
authorAnas <anas.el.amraoui@live.com>2021-11-30 18:05:51 +0200
committerGitHub <noreply@github.com>2021-11-30 18:05:51 +0200
commitb94e230b17d08e6c89d134e933c706256b79bc4a (patch)
tree993bd7565169229326b810b66939587431ab9dc6 /redis/retry.py
parent368a25f9d163d784a8896f1c087582405e98e006 (diff)
downloadredis-py-b94e230b17d08e6c89d134e933c706256b79bc4a.tar.gz
Added black and isort (#1734)
Diffstat (limited to 'redis/retry.py')
-rw-r--r--redis/retry.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/redis/retry.py b/redis/retry.py
index cd06a23..75504c7 100644
--- a/redis/retry.py
+++ b/redis/retry.py
@@ -6,8 +6,9 @@ from redis.exceptions import ConnectionError, TimeoutError
class Retry:
"""Retry a specific number of times after a failure"""
- def __init__(self, backoff, retries,
- supported_errors=(ConnectionError, TimeoutError)):
+ def __init__(
+ self, backoff, retries, supported_errors=(ConnectionError, TimeoutError)
+ ):
"""
Initialize a `Retry` object with a `Backoff` object
that retries a maximum of `retries` times.