Skip to content

Commit

Permalink
Update src/urllib3/util/retry.py
Browse files Browse the repository at this point in the history
Co-authored-by: Andrey Petrov <shazow@gmail.com>
  • Loading branch information
sethmlarson and shazow committed Sep 28, 2020
1 parent d867f38 commit 9c76e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/urllib3/util/retry.py
Expand Up @@ -428,7 +428,7 @@ def _is_read_error(self, err):

def _is_method_retryable(self, method):
"""Checks if a given HTTP method should be retried upon, depending if
it is included on the method allowlist.
it is included in the allowed_methods
"""
# TODO: For now favor if the Retry implementation sets its own method_whitelist
# property outside of our constructor to avoid breaking custom implementations.
Expand Down

0 comments on commit 9c76e52

Please sign in to comment.