diff options
author | Anas <anas.el.amraoui@live.com> | 2021-11-30 18:05:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-30 18:05:51 +0200 |
commit | b94e230b17d08e6c89d134e933c706256b79bc4a (patch) | |
tree | 993bd7565169229326b810b66939587431ab9dc6 /redis/retry.py | |
parent | 368a25f9d163d784a8896f1c087582405e98e006 (diff) | |
download | redis-py-b94e230b17d08e6c89d134e933c706256b79bc4a.tar.gz |
Added black and isort (#1734)
Diffstat (limited to 'redis/retry.py')
-rw-r--r-- | redis/retry.py | 5 |
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. |