Change instances of 'while 1:' in the docs into 'while True:'.
diff --git a/Doc/howto/curses.rst b/Doc/howto/curses.rst
index e16d07a..6f53708 100644
--- a/Doc/howto/curses.rst
+++ b/Doc/howto/curses.rst
@@ -377,7 +377,7 @@
 :const:`curses.KEY_HOME`, or :const:`curses.KEY_LEFT`.  Usually the main loop of
 your program will look something like this::
 
-   while 1:
+   while True:
        c = stdscr.getch()
        if c == ord('p'): PrintDocument()
        elif c == ord('q'): break  # Exit the while()