]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: improve accuracy of socketserver reference (GH-24767)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 29 Nov 2022 20:43:09 +0000 (12:43 -0800)
committerGitHub <noreply@github.com>
Tue, 29 Nov 2022 20:43:09 +0000 (12:43 -0800)
(cherry picked from commit 052bc128ac0bcafd36a0cbee5f4c2a10d74468dc)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
Doc/library/socketserver.rst

index 70d56a1dad94f208f2a3028a8cd3d67508ce17ce..a409c99b1f6a4525a97787c71939c45fb41d024c 100644 (file)
@@ -96,8 +96,7 @@ synchronous servers of four types::
 
 Note that :class:`UnixDatagramServer` derives from :class:`UDPServer`, not from
 :class:`UnixStreamServer` --- the only difference between an IP and a Unix
-stream server is the address family, which is simply repeated in both Unix
-server classes.
+server is the address family.
 
 
 .. class:: ForkingMixIn
@@ -432,11 +431,8 @@ Request Handler Objects
    The :attr:`self.rfile` and :attr:`self.wfile` attributes can be
    read or written, respectively, to get the request data or return data
    to the client.
-
-   The :attr:`rfile` attributes of both classes support the
-   :class:`io.BufferedIOBase` readable interface, and
-   :attr:`DatagramRequestHandler.wfile` supports the
-   :class:`io.BufferedIOBase` writable interface.
+   The :attr:`!rfile` attributes support the :class:`io.BufferedIOBase` readable interface,
+   and :attr:`!wfile` attributes support the :class:`!io.BufferedIOBase` writable interface.
 
    .. versionchanged:: 3.6
       :attr:`StreamRequestHandler.wfile` also supports the