8000 [3.11] gh-101100: Fix Sphinx warnings in `library/tty.rst` (GH-111079… · python/cpython@f1dbde0 · GitHub
[go: up one dir, main page]

Skip to content

Commit f1dbde0

Browse files
[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 c42c68a) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
1 parent 69f0c90 commit f1dbde0

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

Doc/library/termios.rst

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,20 @@ The module defines the following functions:
4343

4444
Set the tty attributes for file descriptor *fd* from the *attributes*, which is
4545
a list like the one returned by :func:`tcgetattr`. The *when* argument
46-
determines when the attributes are changed: :const:`TCSANOW` to change
47-
immediately, :const:`TCSADRAIN` to change after transmitting all queued output,
48-
or :const:`TCSAFLUSH` to change after transmitting all queued output and
49-
discarding all queued input.
46+
determines when the attributes are changed:
47+
48+
.. data:: TCSANOW
49+
50+
Change attributes immediately.
51+
52+
.. data:: TCSADRAIN
53+
54+
Change attributes after transmitting all queued output.
55+
56+
.. data:: TCSAFLUSH
57+
58+
Change attributes after transmitting all queued output and
59+
discarding all queued input.
5060

5161

5262
.. function:: tcsendbreak(fd, duration)

Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ Doc/library/tkinter.rst
124124
Doc/library/tkinter.scrolledtext.rst
125125
Doc/library/tkinter.ttk.rst
126126
Doc/library/traceback.rst
127-
Doc/library/tty.rst
128127
Doc/library/unittest.mock.rst
129128
Doc/library/unittest.rst
130129
Doc/library/urllib.parse.rst

0 commit comments

Comments
 (0)
0