Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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")
Expand Down