mirror of
https://github.com/python/cpython
synced 2024-09-19 20:51:48 +00:00
Issue #22289: merge from 3.4
This commit is contained in:
commit
2f7bf23925
|
@ -1328,7 +1328,8 @@ def filter_error(err):
|
|||
(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…
Reference in a new issue