From 09e139338988f572a896601dfbceb43376f9cb89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=AE=AE=E0=AE=A9=E0=AF=8B=E0=AE=9C=E0=AF=8D=E0=AE=95?= =?UTF-8?q?=E0=AF=81=E0=AE=AE=E0=AE=BE=E0=AE=B0=E0=AF=8D=20=E0=AE=AA?= =?UTF-8?q?=E0=AE=B4=E0=AE=A9=E0=AE=BF=E0=AE=9A=E0=AF=8D=E0=AE=9A=E0=AE=BE?= =?UTF-8?q?=E0=AE=AE=E0=AE=BF?= Date: Fri, 15 Apr 2022 08:58:53 +0530 Subject: [PATCH] Update README.rst --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index e1d0e9c..2e92de7 100644 --- a/README.rst +++ b/README.rst @@ -90,7 +90,7 @@ Examples @retry(ValueError, delay=1, jitter=1) def make_trouble(): - '''Retry on ValueError, sleep 1, 2, 3, 4, ... seconds between attempts.''' + '''Retry on ValueError, sleep 2 seconds between attempts.''' .. code:: python @@ -151,7 +151,7 @@ This is very similar to the decorator, except that it takes a function and its a else: # skeptical tries = -1 - result = retry_call(make_trouble, fargs=["http://ipinfo.io/"], fkwargs={"info": "ip"}, tries=tries) + result = retry_call(make_trouble, fargs=("http://ipinfo.io/",), fkwargs={"info": "ip"}, tries=tries) print(result) what_is_my_ip("conservative")