summaryrefslogtreecommitdiffstats
path: root/Modules/_ssl.c
diff options
context:
space:
mode:
authorNed Deily <nad@python.org>2018-06-12 00:26:28 (GMT)
committerGitHub <noreply@github.com>2018-06-12 00:26:28 (GMT)
commit4531ec74c4a9c8e15ee2bdec11b12796ce000f6f (patch)
tree484010300a7967c623332a95b32471d611ab531a /Modules/_ssl.c
parentef24b6c54d40e7820456873a6eab6ef57d2bd0db (diff)
downloadcpython-4531ec74c4a9c8e15ee2bdec11b12796ce000f6f.zip
cpython-4531ec74c4a9c8e15ee2bdec11b12796ce000f6f.tar.gz
cpython-4531ec74c4a9c8e15ee2bdec11b12796ce000f6f.tar.bz2
bpo-31432: Revert unrelated code changes to _ssl.c and test_ssl (GH-7650)
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r--Modules/_ssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 00d648d..2bce481 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -2066,7 +2066,7 @@ static int PySSL_set_context(PySSLSocket *self, PyObject *value,
SSL_set_SSL_CTX(self->ssl, self->ctx->ctx);
#endif
} else {
- PyErr_SetString(PyExc_TypeError, "The value must be an SSLContext.");
+ PyErr_SetString(PyExc_TypeError, "The value must be a SSLContext");
return -1;
}
@@ -2725,7 +2725,7 @@ static int PySSL_set_session(PySSLSocket *self, PyObject *value,
int result;
if (!PySSLSession_Check(value)) {
- PyErr_SetString(PyExc_TypeError, "Value is not an SSLSession.");
+ PyErr_SetString(PyExc_TypeError, "Value is not a SSLSession.");
return -1;
}
pysess = (PySSLSession *)value;