File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments