File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1497,7 +1497,7 @@ Socket Objects
14971497 of :meth: `socket.getpeername ` but not the actual OS resource. Unlike
14981498 :func: `socket.fromfd `, *fileno * will return the same socket and not a
14991499 duplicate. This may help close a detached socket using
1500- :meth: `socket.close `.
1500+ :meth: `~socket. socket.close `.
15011501
15021502 The newly created socket is :ref: `non-inheritable <fd_inheritance >`.
15031503
@@ -1544,7 +1544,7 @@ Socket Objects
15441544
15451545 .. versionchanged :: 3.2
15461546 Support for the :term: `context manager ` protocol was added. Exiting the
1547- context manager is equivalent to calling :meth: `~socket.close `.
1547+ context manager is equivalent to calling :meth: `~socket.socket. close `.
15481548
15491549
15501550 .. method :: accept()
@@ -1769,7 +1769,7 @@ Socket Objects
17691769
17701770 Closing the file object returned by :meth: `makefile ` won't close the
17711771 original socket unless all other file objects have been closed and
1772- :meth: `socket.close ` has been called on the socket object.
1772+ :meth: `~socket. socket.close ` has been called on the socket object.
17731773
17741774 .. note ::
17751775
You can’t perform that action at this time.
0 commit comments