Skip to content

Commit 88f4b52

Browse files
pythongh-137920: Fix semantically relevant typo in curses.window.attron (python#137940)
Originally authored by: vict-Yang (cherry picked from commit ce70a57)
1 parent d574f83 commit 88f4b52

File tree

3 files changed

+41
-26
lines changed

3 files changed

+41
-26
lines changed

Doc/library/curses.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ Window Objects
772772

773773
.. method:: window.attron(attr)
774774

775-
Add attribute *attr* from the "background" set applied to all writes to the
775+
Add attribute *attr* to the "background" set applied to all writes to the
776776
current window.
777777

778778

Modules/_cursesmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,12 +1139,12 @@ _curses.window.attron
11391139
attr: long
11401140
/
11411141
1142-
Add attribute attr from the "background" set.
1142+
Add attribute attr to the "background" set.
11431143
[clinic start generated code]*/
11441144

11451145
static PyObject *
11461146
_curses_window_attron_impl(PyCursesWindowObject *self, long attr)
1147-
/*[clinic end generated code: output=7afea43b237fa870 input=5a88fba7b1524f32]*/
1147+
/*[clinic end generated code: output=7afea43b237fa870 input=b57f824e1bf58326]*/
11481148
{
11491149
return PyCursesCheckERR_ForWin(self, wattron(self->win, (attr_t)attr), "attron");
11501150
}

Modules/clinic/_cursesmodule.c.h

Lines changed: 38 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)