diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index f729bc0c874bd1..4f5da85b539dc5 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -2548,12 +2548,8 @@ provided. :exc:`SSLWantReadError` if it needs more data than the incoming BIO has available. - - There is no module-level ``wrap_bio()`` call like there is for - :meth:`~SSLContext.wrap_socket`. An :class:`SSLObject` is always created - via an :class:`SSLContext`. - .. versionchanged:: 3.7 - :class:`SSLObject` instances must to created with + :class:`SSLObject` instances must be created with :meth:`~SSLContext.wrap_bio`. In earlier versions, it was possible to create instances directly. This was never documented or officially supported.