From: Andrew M. Kuchling Date: Sat, 3 Jun 2006 23:02:15 +0000 (+0000) Subject: Use True; value returned from main is unused X-Git-Tag: v2.5b1~286 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98900bc7bb4ecb01243b079ce975f36524aa3c86;p=python Use True; value returned from main is unused --- diff --git a/Demo/curses/rain.py b/Demo/curses/rain.py index 69794b38da..9d46e6eb60 100644 --- a/Demo/curses/rain.py +++ b/Demo/curses/rain.py @@ -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(' '):