From: Jiayu Yi Date: Thu, 10 Apr 2025 12:06:38 +0000 (+0800) Subject: Fix example code in curses tutorial (#126446) X-Git-Tag: v3.14.0b1~541 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5fbe23ee4ec636b78ca26ce0a8b7d83dff77a2ce;p=thirdparty%2FPython%2Fcpython.git Fix example code in curses tutorial (#126446) --- diff --git a/Doc/howto/curses.rst b/Doc/howto/curses.rst index f9ad81e38f8d..6994a5328e81 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)