From 11b2dc07e2b6c0a454eda71f1ac78b16b4f8f287 Mon Sep 17 00:00:00 2001 From: PrineNaroliya Date: Tue, 19 Aug 2025 10:56:05 +0530 Subject: [PATCH 1/3] [docs] Fic grammar in ssl.SSLContect.sslsocket_class docstring --- Doc/library/ssl.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index ff6053cb7e94d9..e540faf029eb49 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -1898,7 +1898,8 @@ to speed up repeated connections from the same clients. .. attribute:: SSLContext.sslsocket_class The return type of :meth:`SSLContext.wrap_socket`, defaults to - :class:`SSLSocket`. The attribute can be overridden on instance of class + :class:`SSLSocket`. The attribute can be assigned to on instances of + :class:`SSLContext` or overridden on subclasses of :class:`SSLContext` in order to return a custom subclass of :class:`SSLSocket`. .. versionadded:: 3.7 From a733a53924337d3eddb69d67e9a7a215b8fec359 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" <68491+gpshead@users.noreply.github.com> Date: Tue, 19 Aug 2025 04:52:33 -0700 Subject: [PATCH 2/3] Apply suggestion from @gpshead --- Doc/library/ssl.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index e540faf029eb49..581e48bb57cad3 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -1899,6 +1899,8 @@ to speed up repeated connections from the same clients. The return type of :meth:`SSLContext.wrap_socket`, defaults to :class:`SSLSocket`. The attribute can be assigned to on instances of + :class:`SSLContext` in order to return a custom subclass of + :class:`SSLSocket`. :class:`SSLContext` or overridden on subclasses of :class:`SSLContext` in order to return a custom subclass of :class:`SSLSocket`. From 489f928b0ecf835cd3887dc0c0a3e68806204f96 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" <68491+gpshead@users.noreply.github.com> Date: Tue, 19 Aug 2025 04:53:43 -0700 Subject: [PATCH 3/3] Update ssl.rst --- Doc/library/ssl.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index 581e48bb57cad3..18985d42349885 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -1901,8 +1901,6 @@ to speed up repeated connections from the same clients. :class:`SSLSocket`. The attribute can be assigned to on instances of :class:`SSLContext` in order to return a custom subclass of :class:`SSLSocket`. - :class:`SSLContext` or overridden on subclasses of :class:`SSLContext` - in order to return a custom subclass of :class:`SSLSocket`. .. versionadded:: 3.7