From 21dcb932a7ddb9fff116debfcbaf48358b814964 Mon Sep 17 00:00:00 2001 From: R David Murray Date: Fri, 3 Jun 2016 13:29:17 -0400 Subject: [PATCH] #22797: clarify when URLErrors are raised by urlopen. --- Doc/library/urllib.request.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst index 688f1493c4..ac8da26c83 100644 --- a/Doc/library/urllib.request.rst +++ b/Doc/library/urllib.request.rst @@ -83,7 +83,7 @@ The :mod:`urllib.request` module defines the following functions: :class:`URLopener` and :class:`FancyURLopener` classes, this function returns a :class:`urllib.response.addinfourl` object. - Raises :exc:`~urllib.error.URLError` on errors. + Raises :exc:`~urllib.error.URLError` on protocol errors. Note that ``None`` may be returned if no handler handles the request (though the default installed global :class:`OpenerDirector` uses -- 2.40.0