[Python-checkins] r46627 - python/trunk/Demo/curses/repeat.py
andrew.kuchling
python-checkins at python.org
Sun Jun 4 01:09:58 CEST 2006
Author: andrew.kuchling
Date: Sun Jun 4 01:09:58 2006
New Revision: 46627
Modified:
python/trunk/Demo/curses/repeat.py
Log:
Docstring fix; use True
Modified: python/trunk/Demo/curses/repeat.py
==============================================================================
--- python/trunk/Demo/curses/repeat.py (original)
+++ python/trunk/Demo/curses/repeat.py Sun Jun 4 01:09:58 2006
@@ -2,7 +2,7 @@
"""repeat <shell-command>
-This simple program repeatedly (with 1-second intervals) executes the
+This simple program repeatedly (at 1-second intervals) executes the
shell command given on the command line and displays the output (or as
much of it as fits on the screen). It uses curses to paint each new
output on top of the old output, so that if nothing changes, the
@@ -38,7 +38,7 @@
sys.exit(sts)
w = curses.initscr()
try:
- while 1:
+ while True:
w.erase()
try:
w.addstr(text)
More information about the Python-checkins
mailing list