]> granicus.if.org Git - python/commitdiff
Use True; value returned from main is unused
authorAndrew M. Kuchling <amk@amk.ca>
Sat, 3 Jun 2006 23:02:15 +0000 (23:02 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Sat, 3 Jun 2006 23:02:15 +0000 (23:02 +0000)
Demo/curses/rain.py

index 69794b38da538e136f111305688b24e6f0a2f86c..9d46e6eb600a1b52972063ccea9bee5cf59d9f29 100644 (file)
@@ -48,7 +48,7 @@ def main(win):
         ypos[j] = randrange(0, r) + 2
 
     j = 0
-    while 1:
+    while True:
         x = randrange(0, c) + 2
         y = randrange(0, r) + 2
 
@@ -83,7 +83,7 @@ def main(win):
 
         ch = stdscr.getch()
         if ch == ord('q') or ch == ord('Q'):
-            return 0
+            return
         elif ch == ord('s'):
             stdscr.nodelay(0)
         elif ch == ord(' '):