Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit edbc18e

Browse files
committed
Improve set_servername_callback docstring.
1 parent a596338 commit edbc18e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Modules/_ssl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2503,13 +2503,13 @@ _servername_callback(SSL *s, int *al, void *args)
25032503

25042504
PyDoc_STRVAR(PySSL_set_servername_callback_doc,
25052505
"set_servername_callback(method)\n\
2506-
\
2506+
\n\
25072507
This sets a callback that will be called when a server name is provided by\n\
25082508
the SSL/TLS client in the SNI extension.\n\
2509-
\
2509+
\n\
25102510
If the argument is None then the callback is disabled. The method is called\n\
25112511
with the SSLSocket, the server name as a string, and the SSLContext object.\n\
2512-
See RFC 6066 for details of the SNI");
2512+
See RFC 6066 for details of the SNI extension.");
25132513

25142514
static PyObject *
25152515
set_servername_callback(PySSLContext *self, PyObject *args)

0 commit comments

Comments
 (0)