socket.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:PySocket 作者: falseen 项目源码 文件源码
def ssl(sock, keyfile=None, certfile=None):
        # we do an internal import here because the ssl
        # module imports the socket module
        import ssl as _realssl
        warnings.warn("socket.ssl() is deprecated.  Use ssl.wrap_socket() instead.",
                      DeprecationWarning, stacklevel=2)
        return _realssl.sslwrap_simple(sock, keyfile, certfile)

    # we need to import the same constants we used to...
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号