summaryrefslogtreecommitdiffstats
path: root/Doc/howto/curses.rst
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-09-10 00:49:57 (GMT)
committerCollin Winter <collinw@gmail.com>2007-09-10 00:49:57 (GMT)
commit463344813fa580118eb4fd9dc4cfe26f0a0f17ef (patch)
tree7af9fd3622e4ac8a81cdd0faa0b79d84a881cc04 /Doc/howto/curses.rst
parent4c6a140b7f6478d92e14d84c6ca89edef120658e (diff)
downloadcpython-463344813fa580118eb4fd9dc4cfe26f0a0f17ef.zip
cpython-463344813fa580118eb4fd9dc4cfe26f0a0f17ef.tar.gz
cpython-463344813fa580118eb4fd9dc4cfe26f0a0f17ef.tar.bz2
Change instances of 'while 1:' in the docs into 'while True:'.
Diffstat (limited to 'Doc/howto/curses.rst')
-rw-r--r--Doc/howto/curses.rst2
1 files changed, 1 insertions, 1 deletions
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 @@ value returned to constants such as :const:`curses.KEY_PPAGE`,
: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()