-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch urllib3 to mark the retry warning
- Loading branch information
Showing
3 changed files
with
23 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/src/pip/_vendor/urllib3/connectionpool.py b/src/pip/_vendor/urllib3/connectionpool.py | ||
index 5a6adcbdc..b973d287d 100644 | ||
--- a/src/pip/_vendor/urllib3/connectionpool.py | ||
+++ b/src/pip/_vendor/urllib3/connectionpool.py | ||
@@ -822,7 +822,8 @@ class HTTPConnectionPool(ConnectionPool, RequestMethods): | ||
if not conn: | ||
# Try again | ||
log.warning( | ||
- "Retrying (%r) after connection broken by '%r': %s", retries, err, url | ||
+ "Retrying (%r) after connection broken by '%r': %s", retries, err, url, | ||
+ extra={"pip_urllib3_retry_warning": (retries, err)} | ||
) | ||
return self.urlopen( | ||
method, |