warnings.warn('socket.ssl() is deprecated.  Use ssl.wrap_socket() instead.',
    DeprecationWarning, stacklevel=2)
return _realssl.sslwrap_simple(sock, keyfile, certfile)
PYTHON SSL - The difference between two ways to set up a ssl connection