Skip to content

Commit ce70a57

Browse files
authored
gh-137920: Fix semantically relevant typo in curses.window.attron (#137940)
1 parent 5a7f5ea commit ce70a57

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Doc/library/curses.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ the following methods and attributes:
770770

771771
.. method:: window.attron(attr)
772772

773-
Add attribute *attr* from the "background" set applied to all writes to the
773+
Add attribute *attr* to the "background" set applied to all writes to the
774774
current window.
775775

776776

Modules/_cursesmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,12 +1298,12 @@ _curses.window.attron
12981298
attr: long
12991299
/
13001300
1301-
Add attribute attr from the "background" set.
1301+
Add attribute attr to the "background" set.
13021302
[clinic start generated code]*/
13031303

13041304
static PyObject *
13051305
_curses_window_attron_impl(PyCursesWindowObject *self, long attr)
1306-
/*[clinic end generated code: output=7afea43b237fa870 input=5a88fba7b1524f32]*/
1306+
/*[clinic end generated code: output=7afea43b237fa870 input=b57f824e1bf58326]*/
13071307
{
13081308
int rtn = wattron(self->win, (attr_t)attr);
13091309
return curses_window_check_err(self, rtn, "wattron", "attron");

Modules/clinic/_cursesmodule.c.h

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

0 commit comments

Comments
 (0)