summaryrefslogtreecommitdiff
path: root/redis/retry.py
diff options
context:
space:
mode:
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.