]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-137920: Fix semantically relevant typo in `curses.window.attron` (#137940)
authorvict-Yang <105902098+vict-Yang@users.noreply.github.com>
Fri, 22 Aug 2025 08:27:02 +0000 (16:27 +0800)
committerGitHub <noreply@github.com>
Fri, 22 Aug 2025 08:27:02 +0000 (10:27 +0200)
Doc/library/curses.rst
Modules/_cursesmodule.c
Modules/clinic/_cursesmodule.c.h

index 0b13c559295f3c64de81037dc58abd542bcb54fd..fab54ca87efee96f1fa0867e019bf853c2401e34 100644 (file)
@@ -770,7 +770,7 @@ the following methods and attributes:
 
 .. method:: window.attron(attr)
 
-   Add attribute *attr* from the "background" set applied to all writes to the
+   Add attribute *attr* to the "background" set applied to all writes to the
    current window.
 
 
index a9c91fbcc89c1830b247f83b24d4cab843a14492..232dbcace9ac57c6d8f68463d0180c991eebf33c 100644 (file)
@@ -1298,12 +1298,12 @@ _curses.window.attron
     attr: long
     /
 
-Add attribute attr from the "background" set.
+Add attribute attr to the "background" set.
 [clinic start generated code]*/
 
 static PyObject *
 _curses_window_attron_impl(PyCursesWindowObject *self, long attr)
-/*[clinic end generated code: output=7afea43b237fa870 input=5a88fba7b1524f32]*/
+/*[clinic end generated code: output=7afea43b237fa870 input=b57f824e1bf58326]*/
 {
     int rtn = wattron(self->win, (attr_t)attr);
     return curses_window_check_err(self, rtn, "wattron", "attron");
index a8c32d6510604ae7e88ea352221581d134531854..e6f9798cdf12498358e09a269b060172feab4449 100644 (file)
@@ -301,7 +301,7 @@ PyDoc_STRVAR(_curses_window_attron__doc__,
 "attron($self, attr, /)\n"
 "--\n"
 "\n"
-"Add attribute attr from the \"background\" set.");
+"Add attribute attr to the \"background\" set.");
 
 #define _CURSES_WINDOW_ATTRON_METHODDEF    \
     {"attron", (PyCFunction)_curses_window_attron, METH_O, _curses_window_attron__doc__},
@@ -4450,4 +4450,4 @@ _curses_has_extended_color_support(PyObject *module, PyObject *Py_UNUSED(ignored
 #ifndef _CURSES_ASSUME_DEFAULT_COLORS_METHODDEF
     #define _CURSES_ASSUME_DEFAULT_COLORS_METHODDEF
 #endif /* !defined(_CURSES_ASSUME_DEFAULT_COLORS_METHODDEF) */
-/*[clinic end generated code: output=79ddaae4da3b80df input=a9049054013a1b77]*/
+/*[clinic end generated code: output=135246e29163510c input=a9049054013a1b77]*/