]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Fix example code in curses tutorial (GH-126446) (#132362)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 10 Apr 2025 12:13:50 +0000 (14:13 +0200)
committerGitHub <noreply@github.com>
Thu, 10 Apr 2025 12:13:50 +0000 (12:13 +0000)
Co-authored-by: Jiayu Yi <yijiayu@gmail.com>
Doc/howto/curses.rst

index f9ad81e38f8dc3d4eb512e4d94c08f45dd4110a7..6994a5328e81496d0568f2459f636697de246a6a 100644 (file)
@@ -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)