Skip to content

Commit 59cafbb

Browse files
[3.13] gh-150285: Fix too long docstrings in the curses module (GH-150286) (GH-150457) (GH-150469)
(cherry picked from commit e7f1216) (cherry picked from commit 4c0fe2d)
1 parent 9463c9d commit 59cafbb

5 files changed

Lines changed: 363 additions & 317 deletions

File tree

Lib/curses/textpad.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ class Textbox:
2323
Ctrl-A Go to left edge of window.
2424
Ctrl-B Cursor left, wrapping to previous line if appropriate.
2525
Ctrl-D Delete character under cursor.
26-
Ctrl-E Go to right edge (stripspaces off) or end of line (stripspaces on).
26+
Ctrl-E Go to right edge (stripspaces off) or end of line
27+
(stripspaces on).
2728
Ctrl-F Cursor right, wrapping to next line when appropriate.
2829
Ctrl-G Terminate, returning the window contents.
2930
Ctrl-H Delete character backward.
@@ -34,11 +35,12 @@ class Textbox:
3435
Ctrl-O Insert a blank line at cursor location.
3536
Ctrl-P Cursor up; move up one line.
3637
37-
Move operations do nothing if the cursor is at an edge where the movement
38-
is not possible. The following synonyms are supported where possible:
38+
Move operations do nothing if the cursor is at an edge where the
39+
movement is not possible. The following synonyms are supported where
40+
possible:
3941
40-
KEY_LEFT = Ctrl-B, KEY_RIGHT = Ctrl-F, KEY_UP = Ctrl-P, KEY_DOWN = Ctrl-N
41-
KEY_BACKSPACE = Ctrl-h
42+
KEY_LEFT = Ctrl-B, KEY_RIGHT = Ctrl-F, KEY_UP = Ctrl-P,
43+
KEY_DOWN = Ctrl-N, KEY_BACKSPACE = Ctrl-h
4244
"""
4345
def __init__(self, win, insert_mode=False):
4446
self.win = win

Modules/_curses_panel.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,13 @@ _curses_panel.panel.hide
234234
235235
Hide the panel.
236236
237-
This does not delete the object, it just makes the window on screen invisible.
237+
This does not delete the object, it just makes the window on screen
238+
invisible.
238239
[clinic start generated code]*/
239240

240241
static PyObject *
241242
_curses_panel_panel_hide_impl(PyCursesPanelObject *self, PyTypeObject *cls)
242-
/*[clinic end generated code: output=cc6ab7203cdc1450 input=1bfc741f473e6055]*/
243+
/*[clinic end generated code: output=cc6ab7203cdc1450 input=805065e45e6fc1cd]*/
243244
{
244245
_curses_panel_state *state = PyType_GetModuleState(cls);
245246
return PyCursesCheckERR(state, hide_panel(self->pan), "hide");
@@ -689,12 +690,13 @@ _curses_panel.update_panels
689690
690691
Updates the virtual screen after changes in the panel stack.
691692
692-
This does not call curses.doupdate(), so you'll have to do this yourself.
693+
This does not call curses.doupdate(), so you'll have to do this
694+
yourself.
693695
[clinic start generated code]*/
694696

695697
static PyObject *
696698
_curses_panel_update_panels_impl(PyObject *module)
697-
/*[clinic end generated code: output=2f3b4c2e03d90ded input=5299624c9a708621]*/
699+
/*[clinic end generated code: output=2f3b4c2e03d90ded input=0d0db79f05ec3ef4]*/
698700
{
699701
PyCursesInitialised;
700702
update_panels();

0 commit comments

Comments
 (0)