@@ -16,7 +16,7 @@ authentication, redirections, cookies and more.
1616The :mod: `urllib.request ` module defines the following functions:
1717
1818
19- .. function :: urlopen(url, data=None[, timeout], *, cafile=None, capath=None, cadefault=False)
19+ .. function :: urlopen(url, data=None[, timeout], *, cafile=None, capath=None, cadefault=False, context=None )
2020
2121 Open the URL *url *, which can be either a string or a
2222 :class: `Request ` object.
@@ -47,6 +47,10 @@ The :mod:`urllib.request` module defines the following functions:
4747 the global default timeout setting will be used). This actually
4848 only works for HTTP, HTTPS and FTP connections.
4949
50+ If *context * is specified, it must be a :class: `ssl.SSLContext ` instance
51+ describing the various SSL options. See
52+ :class: `~http.client.HTTPSConnection ` for more details.
53+
5054 The optional *cafile * and *capath * parameters specify a set of trusted
5155 CA certificates for HTTPS requests. *cafile * should point to a single
5256 file containing a bundle of CA certificates, whereas *capath * should
@@ -111,6 +115,9 @@ The :mod:`urllib.request` module defines the following functions:
111115 .. versionchanged :: 3.3
112116 *cadefault * was added.
113117
118+ .. versionchanged :: 3.4.3
119+ *context * was added.
120+
114121.. function :: install_opener(opener)
115122
116123 Install an :class: `OpenerDirector ` instance as the default global opener.
0 commit comments