From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 20 Oct 2023 04:50:17 +0000 (+0200) Subject: [3.11] gh-101100: Fix Sphinx warnings in `library/tty.rst` (GH-111079) (#111098) X-Git-Tag: v3.11.7~158 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f1dbde0d3a448e623bd8c4c76139284174e0f90d;p=thirdparty%2FPython%2Fcpython.git [3.11] gh-101100: Fix Sphinx warnings in `library/tty.rst` (GH-111079) (#111098) gh-101100: Fix Sphinx warnings in `library/tty.rst` (GH-111079) Fix Sphinx warnings in library/tty.rst (cherry picked from commit c42c68aa7bd19b0de7f2132ed468bc4ce83d8aa9) Co-authored-by: Hugo van Kemenade --- diff --git a/Doc/library/termios.rst b/Doc/library/termios.rst index fb1ff567d49e..03806178e9d3 100644 --- a/Doc/library/termios.rst +++ b/Doc/library/termios.rst @@ -43,10 +43,20 @@ The module defines the following functions: Set the tty attributes for file descriptor *fd* from the *attributes*, which is a list like the one returned by :func:`tcgetattr`. The *when* argument - determines when the attributes are changed: :const:`TCSANOW` to change - immediately, :const:`TCSADRAIN` to change after transmitting all queued output, - or :const:`TCSAFLUSH` to change after transmitting all queued output and - discarding all queued input. + determines when the attributes are changed: + + .. data:: TCSANOW + + Change attributes immediately. + + .. data:: TCSADRAIN + + Change attributes after transmitting all queued output. + + .. data:: TCSAFLUSH + + Change attributes after transmitting all queued output and + discarding all queued input. .. function:: tcsendbreak(fd, duration) diff --git a/Doc/tools/.nitignore b/Doc/tools/.nitignore index b47924f25348..b49fce00cf48 100644 --- a/Doc/tools/.nitignore +++ b/Doc/tools/.nitignore @@ -124,7 +124,6 @@ Doc/library/tkinter.rst Doc/library/tkinter.scrolledtext.rst Doc/library/tkinter.ttk.rst Doc/library/traceback.rst -Doc/library/tty.rst Doc/library/unittest.mock.rst Doc/library/unittest.rst Doc/library/urllib.parse.rst