https://github.com/python/cpython/commit/4ef51fa75c17d4f027f2b73ff92be7a8b53eeb4f
commit: 4ef51fa75c17d4f027f2b73ff92be7a8b53eeb4f
branch: main
author: Bénédikt Tran <[email protected]>
committer: picnixz <[email protected]>
date: 2025-09-08T11:31:40Z
summary:

gh-138633: fix Sphinx references in `ssl` documentation (#138648)

files:
M Doc/library/ssl.rst

diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst
index 3ed1c515d86d85..0f2c2b89295cdf 100644
--- a/Doc/library/ssl.rst
+++ b/Doc/library/ssl.rst
@@ -1195,11 +1195,11 @@ SSL sockets also have the following additional methods 
and attributes:
 
    Perform the SSL setup handshake.
 
-   If *block* is true and the timeout obtained by :meth:`~socket.gettimeout`
+   If *block* is true and the timeout obtained by 
:meth:`~socket.socket.gettimeout`
    is zero, the socket is set in blocking mode until the handshake is 
performed.
 
    .. versionchanged:: 3.4
-      The handshake method also performs :func:`match_hostname` when the
+      The handshake method also performs :func:`!match_hostname` when the
       :attr:`~SSLContext.check_hostname` attribute of the socket's
       :attr:`~SSLSocket.context` is true.
 
@@ -1209,7 +1209,7 @@ SSL sockets also have the following additional methods 
and attributes:
 
    .. versionchanged:: 3.7
       Hostname or IP address is matched by OpenSSL during handshake. The
-      function :func:`match_hostname` is no longer used. In case OpenSSL
+      function :func:`!match_hostname` is no longer used. In case OpenSSL
       refuses a hostname or IP address, the handshake is aborted early and
       a TLS alert message is sent to the peer.
 
@@ -2863,7 +2863,7 @@ This common check is automatically performed when
 
 .. versionchanged:: 3.7
    Hostname matchings is now performed by OpenSSL. Python no longer uses
-   :func:`match_hostname`.
+   :func:`!match_hostname`.
 
 In server mode, if you want to authenticate your clients using the SSL layer
 (rather than using a higher-level authentication mechanism), you'll also have

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to