@@ -67,10 +67,9 @@ The module provides the following classes:
67
67
*blocksize * parameter was added.
68
68
69
69
70
- .. class :: HTTPSConnection(host, port=None, key_file=None, \
71
- cert_file=None[, timeout], \
70
+ .. class :: HTTPSConnection(host, port=None[, timeout], \
72
71
source_address=None, *, context=None, \
73
- check_hostname=None, blocksize=8192)
72
+ blocksize=8192)
74
73
75
74
A subclass of :class: `HTTPConnection ` that uses SSL for communication with
76
75
secure servers. Default port is ``443 ``. If *context * is specified, it
@@ -96,6 +95,17 @@ The module provides the following classes:
96
95
:func: `ssl._create_unverified_context ` can be passed to the *context *
97
96
parameter.
98
97
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
+
99
109
.. versionchanged :: 3.8
100
110
This class now enables TLS 1.3
101
111
:attr: `ssl.SSLContext.post_handshake_auth ` for the default *context * or
@@ -106,16 +116,10 @@ The module provides the following classes:
106
116
``http/1.1 `` when no *context * is given. Custom *context * should set
107
117
ALPN protocols with :meth: `~ssl.SSLContext.set_alpn_protocol `.
108
118
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
115
120
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.
119
123
120
124
121
125
.. class :: HTTPResponse(sock, debuglevel=0, method=None, url=None)
0 commit comments