@@ -67,10 +67,9 @@ The module provides the following classes:
6767 *blocksize * parameter was added.
6868
6969
70- .. class :: HTTPSConnection(host, port=None, key_file=None, \
71- cert_file=None[, timeout], \
70+ .. class :: HTTPSConnection(host, port=None[, timeout], \
7271 source_address=None, *, context=None, \
73- check_hostname=None, blocksize=8192)
72+ blocksize=8192)
7473
7574 A subclass of :class: `HTTPConnection ` that uses SSL for communication with
7675 secure servers. Default port is ``443 ``. If *context * is specified, it
@@ -96,6 +95,17 @@ The module provides the following classes:
9695 :func: `ssl._create_unverified_context ` can be passed to the *context *
9796 parameter.
9897
98+ .. deprecated :: 3.6
99+
100+ *key_file * and *cert_file * are deprecated in favor of *context *.
101+ Please use :meth: `ssl.SSLContext.load_cert_chain ` instead, or let
102+ :func: `ssl.create_default_context ` select the system's trusted CA
103+ certificates for you.
104+
105+ The *check_hostname * parameter is also deprecated; the
106+ :attr: `ssl.SSLContext.check_hostname ` attribute of *context * should
107+ be used instead.
108+
99109 .. versionchanged :: 3.8
100110 This class now enables TLS 1.3
101111 :attr: `ssl.SSLContext.post_handshake_auth ` for the default *context * or
@@ -106,16 +116,10 @@ The module provides the following classes:
106116 ``http/1.1 `` when no *context * is given. Custom *context * should set
107117 ALPN protocols with :meth: `~ssl.SSLContext.set_alpn_protocol `.
108118
109- .. deprecated :: 3.6
110-
111- *key_file * and *cert_file * are deprecated in favor of *context *.
112- Please use :meth: `ssl.SSLContext.load_cert_chain ` instead, or let
113- :func: `ssl.create_default_context ` select the system's trusted CA
114- certificates for you.
119+ .. versionchanged :: 3.12
115120
116- The *check_hostname * parameter is also deprecated; the
117- :attr: `ssl.SSLContext.check_hostname ` attribute of *context * should
118- be used instead.
121+ The deprecated *key_file *, *cert_file * and *check_hostname * parameters
122+ have been removed.
119123
120124
121125.. class :: HTTPResponse(sock, debuglevel=0, method=None, url=None)
0 commit comments