mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #22289: merge from 3.4
This commit is contained in:
commit
2f7bf23925
2 changed files with 7 additions and 1 deletions
|
@ -1328,7 +1328,8 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()):
|
|||
(isinstance(err, urllib.error.HTTPError) and
|
||||
500 <= err.code <= 599) or
|
||||
(isinstance(err, urllib.error.URLError) and
|
||||
"ConnectionRefusedError" in err.reason) or
|
||||
(("ConnectionRefusedError" in err.reason) or
|
||||
("TimeoutError" in err.reason))) or
|
||||
n in captured_errnos):
|
||||
if not verbose:
|
||||
sys.stderr.write(denied.args[0] + "\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue