Commit 08b5709e authored by Denis Bilenko's avatar Denis Bilenko

ssl: add a docstring to wrap_socket

parent 8172d3dd
......@@ -339,6 +339,7 @@ def wrap_socket(sock, keyfile=None, certfile=None,
ssl_version=PROTOCOL_SSLv23, ca_certs=None,
do_handshake_on_connect=True,
suppress_ragged_eofs=True):
"""Create a new :class:`SSLSocket` instance."""
return SSLSocket(sock, keyfile=keyfile, certfile=certfile,
server_side=server_side, cert_reqs=cert_reqs,
ssl_version=ssl_version, ca_certs=ca_certs,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment