summaryrefslogtreecommitdiffstats
path: root/Demo/curses
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2006-06-03 23:09:58 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2006-06-03 23:09:58 (GMT)
commit3725dea9c39b3e56532fe4be26545c84a4402f46 (patch)
treeb6a3e3b1d7c58c2975a818ad4b1ee3902416a243 /Demo/curses
parent311562ac75125ed12c0c1e40f096b70fa9d8356a (diff)
downloadcpython-3725dea9c39b3e56532fe4be26545c84a4402f46.zip
cpython-3725dea9c39b3e56532fe4be26545c84a4402f46.tar.gz
cpython-3725dea9c39b3e56532fe4be26545c84a4402f46.tar.bz2
Docstring fix; use True
Diffstat (limited to 'Demo/curses')
-rwxr-xr-xDemo/curses/repeat.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/curses/repeat.py b/Demo/curses/repeat.py
index 158264c..fa7daac 100755
--- a/Demo/curses/repeat.py
+++ b/Demo/curses/repeat.py
@@ -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 @@ def main():
sys.exit(sts)
w = curses.initscr()
try:
- while 1:
+ while True:
w.erase()
try:
w.addstr(text)