summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorJoe <nigelchiang@outlook.com>2021-06-17 09:39:57 (GMT)
committerGitHub <noreply@github.com>2021-06-17 09:39:57 (GMT)
commitc544393b89f9b3e2b1a22588fc9ae58019314879 (patch)
tree6ca6f9bf396a4744f6782dac35446e5670ce5018 /Modules
parent7247f6f433846c6e37308a550e8e5eb6be379856 (diff)
downloadcpython-c544393b89f9b3e2b1a22588fc9ae58019314879.zip
cpython-c544393b89f9b3e2b1a22588fc9ae58019314879.tar.gz
cpython-c544393b89f9b3e2b1a22588fc9ae58019314879.tar.bz2
bpo-44389: Fix typo in ssl deprecation warning message (GH-26754)
`ssl.SSL_NO_TLS` should be `ssl.OP_NO_TLS`.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 26f31f8..ad5269d 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -3597,7 +3597,7 @@ set_options(PySSLContext *self, PyObject *arg, void *c)
set = ~opts & new_opts;
if ((set & opt_no) != 0) {
- if (_ssl_deprecated("ssl.OP_NO_SSL*/ssl.SSL_NO_TLS* options are "
+ if (_ssl_deprecated("ssl.OP_NO_SSL*/ssl.OP_NO_TLS* options are "
"deprecated", 2) < 0) {
return -1;
}