From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 10 Apr 2025 12:13:50 +0000 (+0200) Subject: [3.13] Fix example code in curses tutorial (GH-126446) (#132362) X-Git-Tag: v3.13.4~302 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc85256f89e3c7e99c145e34bd6fc9d9b6f326d1;p=thirdparty%2FPython%2Fcpython.git [3.13] Fix example code in curses tutorial (GH-126446) (#132362) Co-authored-by: Jiayu Yi --- 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)