[Python-checkins] cpython: Improve set_servername_callback docstring.
antoine.pitrou
python-checkins at python.org
Sat Mar 30 16:45:01 CET 2013
http://hg.python.org/cpython/rev/b45630913715
changeset: 83025:b45630913715
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sat Mar 30 16:40:27 2013 +0100
summary:
Improve set_servername_callback docstring.
files:
Modules/_ssl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -2503,13 +2503,13 @@
PyDoc_STRVAR(PySSL_set_servername_callback_doc,
"set_servername_callback(method)\n\
-\
+\n\
This sets a callback that will be called when a server name is provided by\n\
the SSL/TLS client in the SNI extension.\n\
-\
+\n\
If the argument is None then the callback is disabled. The method is called\n\
with the SSLSocket, the server name as a string, and the SSLContext object.\n\
-See RFC 6066 for details of the SNI");
+See RFC 6066 for details of the SNI extension.");
static PyObject *
set_servername_callback(PySSLContext *self, PyObject *args)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list