Skip to content

Commit 19f0019

Browse files
vict-YangStanFromIreland
authored andcommitted
[3.13] pythongh-137920: Fix semantically relevant typo in curses.window.attron (pythonGH-137940)
(cherry picked from commit ce70a57) Co-authored-by: vict-Yang <[email protected]>
1 parent 08e9794 commit 19f0019

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
@@ -759,7 +759,7 @@ Window Objects
759759

760760
.. method:: window.attron(attr)
761761

762-
Add attribute *attr* from the "background" set applied to all writes to the
762+
Add attribute *attr* to the "background" set applied to all writes to the
763763
current window.
764764

765765

Modules/_cursesmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -997,12 +997,12 @@ _curses.window.attron
997997
attr: long
998998
/
999999
1000-
Add attribute attr from the "background" set.
1000+
Add attribute attr to the "background" set.
10011001
[clinic start generated code]*/
10021002

10031003
static PyObject *
10041004
_curses_window_attron_impl(PyCursesWindowObject *self, long attr)
1005-
/*[clinic end generated code: output=7afea43b237fa870 input=5a88fba7b1524f32]*/
1005+
/*[clinic end generated code: output=7afea43b237fa870 input=b57f824e1bf58326]*/
10061006
{
10071007
return PyCursesCheckERR(wattron(self->win, (attr_t)attr), "attron");
10081008
}

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)