]> granicus.if.org Git - python/commitdiff
Docstring fix; use True
authorAndrew M. Kuchling <amk@amk.ca>
Sat, 3 Jun 2006 23:09:58 +0000 (23:09 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Sat, 3 Jun 2006 23:09:58 +0000 (23:09 +0000)
Demo/curses/repeat.py

index 158264cf6b7c75564c6bde4617be8d333d1c1d86..fa7daac175e3ef29d0e6d02e14b1955054532b9a 100755 (executable)
@@ -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)