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

(cherry picked from commit ce70a57bc02fddc8cb18a08aaf1449fceb10d66e)

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

index a80b65bd2fbd05e81b64f1d03bfd612fcb046294..7e155079fdb6cad48efa06c831bfda7b9a8037d9 100644 (file)
@@ -759,7 +759,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 f48b434d0b5262d7ad47b8fa29ea537e2dd31c1b..0200f59020fb061d0e74ab764ea5606e8f43848d 100644 (file)
@@ -997,12 +997,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(wattron(self->win, (attr_t)attr), "attron");
 }
index cb47fdddec3d46634e768ddfccea1e4828bab3b1..b4b3dca1f4c4c4a918e5607c9de1b5864a84b12c 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__},
@@ -4373,4 +4373,4 @@ _curses_has_extended_color_support(PyObject *module, PyObject *Py_UNUSED(ignored
 #ifndef _CURSES_USE_DEFAULT_COLORS_METHODDEF
     #define _CURSES_USE_DEFAULT_COLORS_METHODDEF
 #endif /* !defined(_CURSES_USE_DEFAULT_COLORS_METHODDEF) */
-/*[clinic end generated code: output=39a35d730a47ea72 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=265cd9f5affbad5e input=a9049054013a1b77]*/