gh-104360: remove reference to removed module-level wrap_socket (GH-104361)

* remove reference to removed module-level wrap_socket
* drive by typo fix
This commit is contained in:
Thomas Grainger 2024-01-24 14:24:00 +00:00 committed by GitHub
parent 51d9068ede
commit 127a497852
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 5 deletions

View File

@ -2574,12 +2574,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.