From e6db3993864b0f7a0fdb46dfe35add5e8f3d6a50 Mon Sep 17 00:00:00 2001 From: Jiayu Yi Date: Thu, 10 Apr 2025 20:06:38 +0800 Subject: [PATCH] Fix example code in curses tutorial (GH-126446) (cherry picked from commit 5fbe23ee4ec636b78ca26ce0a8b7d83dff77a2ce) Co-authored-by: Jiayu Yi --- Doc/howto/curses.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/howto/curses.rst b/Doc/howto/curses.rst index f9ad81e38f8dc3..6994a5328e8149 100644 --- a/Doc/howto/curses.rst +++ b/Doc/howto/curses.rst @@ -145,8 +145,8 @@ importing the :func:`curses.wrapper` function and using it like this:: v = i-10 stdscr.addstr(i, 0, '10 divided by {} is {}'.format(v, 10/v)) - stdscr.refresh() - stdscr.getkey() + stdscr.refresh() + stdscr.getkey() wrapper(main)