Skip to content

Commit e7775ba

Browse files
Apply suggestions from code review
1 parent 5df3c94 commit e7775ba

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎README.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ to make to the target function before giving up.
7676
.. code-block:: python
7777
7878
@backoff.on_exception(
79-
backoff.expo, requests.exceptions.RequestException, max_tries=8, jitter=None
79+
backoff.expo, requests.exceptions.RequestException, max_tries=8, jitter=None,
8080
)
8181
def get_url(url):
8282
return requests.get(url)
@@ -95,7 +95,7 @@ be retried:
9595
9696
9797
@backoff.on_exception(
98-
backoff.expo, requests.exceptions.RequestException, max_time=300, giveup=fatal_code
98+
backoff.expo, requests.exceptions.RequestException, max_time=300, giveup=fatal_code,
9999
)
100100
def get_url(url):
101101
return requests.get(url)
@@ -278,7 +278,7 @@ implemented like so:
278278
279279
280280
@backoff.on_exception(
281-
backoff.expo, requests.exceptions.RequestException, on_backoff=backoff_hdlr
281+
backoff.expo, requests.exceptions.RequestException, on_backoff=backoff_hdlr,
282282
)
283283
def get_url(url):
284284
return requests.get(url)

0 commit comments

Comments
 (0)