Skip to content

Commit c675eb1

Browse files
[3.14] gh-115426: Fix cross-references to socket.socket.close() (GH-157295) (#157331)
Co-authored-by: Jade <68784313+jang-hs@users.noreply.github.com>
1 parent 2327e11 commit c675eb1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/socket.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,7 @@ Socket Objects
14811481
of :meth:`socket.getpeername` but not the actual OS resource. Unlike
14821482
:func:`socket.fromfd`, *fileno* will return the same socket and not a
14831483
duplicate. This may help close a detached socket using
1484-
:meth:`socket.close`.
1484+
:meth:`~socket.socket.close`.
14851485

14861486
The newly created socket is :ref:`non-inheritable <fd_inheritance>`.
14871487

@@ -1528,7 +1528,7 @@ Socket Objects
15281528

15291529
.. versionchanged:: 3.2
15301530
Support for the :term:`context manager` protocol was added. Exiting the
1531-
context manager is equivalent to calling :meth:`~socket.close`.
1531+
context manager is equivalent to calling :meth:`~socket.socket.close`.
15321532

15331533

15341534
.. method:: accept()
@@ -1753,7 +1753,7 @@ Socket Objects
17531753

17541754
Closing the file object returned by :meth:`makefile` won't close the
17551755
original socket unless all other file objects have been closed and
1756-
:meth:`socket.close` has been called on the socket object.
1756+
:meth:`~socket.socket.close` has been called on the socket object.
17571757

17581758
.. note::
17591759

0 commit comments

Comments
 (0)