]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Replace `:platform:` with `.. availability::` in `socket.ioctl` doc. (GH-127122)
authorJun Komoda <45822440+junkmd@users.noreply.github.com>
Mon, 25 Nov 2024 12:53:17 +0000 (21:53 +0900)
committerGitHub <noreply@github.com>
Mon, 25 Nov 2024 12:53:17 +0000 (13:53 +0100)
In `socket.ioctl`, `:platform:` -> `.. availability::`

Doc/library/socket.rst

index 73d495c055ff6e9138e3045753446c70e3f56c16..58323ba6514eace7ff0a4d90266a71d6d32525f1 100644 (file)
@@ -1596,8 +1596,6 @@ to sockets.
 
 .. method:: socket.ioctl(control, option)
 
-   :platform: Windows
-
    The :meth:`ioctl` method is a limited interface to the WSAIoctl system
    interface.  Please refer to the `Win32 documentation
    <https://msdn.microsoft.com/en-us/library/ms741621%28VS.85%29.aspx>`_ for more
@@ -1609,9 +1607,12 @@ to sockets.
    Currently only the following control codes are supported:
    ``SIO_RCVALL``, ``SIO_KEEPALIVE_VALS``, and ``SIO_LOOPBACK_FAST_PATH``.
 
+   .. availability:: Windows
+
    .. versionchanged:: 3.6
       ``SIO_LOOPBACK_FAST_PATH`` was added.
 
+
 .. method:: socket.listen([backlog])
 
    Enable a server to accept connections.  If *backlog* is specified, it must