From 40aaa5ab36ebafbf4809fb183a743ecf34367b00 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Wed, 10 May 2023 15:53:12 +0100 Subject: [PATCH 1/2] remove reference to removed module-level wrap_socket --- Doc/library/ssl.rst | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index 18a6c5ab4858a4..6784a6fb99cfdc 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -2453,10 +2453,6 @@ 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 :meth:`~SSLContext.wrap_bio`. In earlier versions, it was possible to From 3c150bb507c41d2ae61a61c2e00f940680682ebc Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Wed, 10 May 2023 15:56:58 +0100 Subject: [PATCH 2/2] drive by typo fix --- Doc/library/ssl.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index 6784a6fb99cfdc..91fa3d412f5940 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -2454,7 +2454,7 @@ provided. available. .. 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.