From 0404ca72016876076493f9eab2103710a1cca82b Mon Sep 17 00:00:00 2001 From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Tue, 7 Oct 2025 21:22:18 +0100 Subject: [PATCH] [3.13] gh-137920: Fix semantically relevant typo in `curses.window.attron` (GH-137940) (GH-138507) Originally authored by: vict-Yang (cherry picked from commit ce70a57bc02fddc8cb18a08aaf1449fceb10d66e) --- Doc/library/curses.rst | 2 +- Modules/_cursesmodule.c | 4 ++-- Modules/clinic/_cursesmodule.c.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Doc/library/curses.rst b/Doc/library/curses.rst index a80b65bd2fbd..7e155079fdb6 100644 --- a/Doc/library/curses.rst +++ b/Doc/library/curses.rst @@ -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. diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index f48b434d0b52..0200f59020fb 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -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"); } diff --git a/Modules/clinic/_cursesmodule.c.h b/Modules/clinic/_cursesmodule.c.h index cb47fdddec3d..b4b3dca1f4c4 100644 --- a/Modules/clinic/_cursesmodule.c.h +++ b/Modules/clinic/_cursesmodule.c.h @@ -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]*/ -- 2.47.3