Skip to content

Commit c42c68a

Browse files
authored
gh-101100: Fix Sphinx warnings in library/tty.rst (#111079)
Fix Sphinx warnings in library/tty.rst
1 parent b802882 commit c42c68a

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
@@ -119,7 +119,6 @@ Doc/library/tkinter.rst
119119
Doc/library/tkinter.scrolledtext.rst
120120
Doc/library/tkinter.ttk.rst
121121
Doc/library/traceback.rst
122-
Doc/library/tty.rst
123122
Doc/library/unittest.mock.rst
124123
Doc/library/unittest.rst
125124
Doc/library/urllib.parse.rst

0 commit comments

Comments
 (0)