]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-137920: Fix semantically relevant typo in curses.window.attron (#137940...
authorStan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Tue, 7 Oct 2025 20:21:41 +0000 (21:21 +0100)
committerGitHub <noreply@github.com>
Tue, 7 Oct 2025 20:21:41 +0000 (22:21 +0200)
Originally authored by: vict-Yang

(cherry picked from commit ce70a57bc02fddc8cb18a08aaf1449fceb10d66e)

Doc/library/curses.rst
Modules/_cursesmodule.c
Modules/clinic/_cursesmodule.c.h

index ce52cdb694504cc103ab0f7d9da33c23043f869b..fb84cf322468797699141a011b2ef37f49c7a33b 100644 (file)
@@ -772,7 +772,7 @@ Window Objects
 
 .. 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 706aa8ea72122beb864d5bf023b2fdd299172ecf..f4e7732b657d4edfe586767dce975edbd6bf531c 100644 (file)
@@ -1139,12 +1139,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]*/
 {
     return PyCursesCheckERR_ForWin(self, wattron(self->win, (attr_t)attr), "attron");
 }
index a898a7e17cf8d1c3d3f38bfad72b32d51fb007ac..8172440dc58c9d8561d262f0f77f62ef84e375c6 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__},
@@ -4435,4 +4435,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=7753612d7613903c input=a9049054013a1b77]*/
+/*[clinic end generated code: output=78252f8805206d95 input=a9049054013a1b77]*/