From 98900bc7bb4ecb01243b079ce975f36524aa3c86 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Sat, 3 Jun 2006 23:02:15 +0000 Subject: [PATCH] Use True; value returned from main is unused --- Demo/curses/rain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Demo/curses/rain.py b/Demo/curses/rain.py index 69794b38da5..9d46e6eb600 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(' '):