summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2006-06-03 23:02:15 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2006-06-03 23:02:15 (GMT)
commit98900bc7bb4ecb01243b079ce975f36524aa3c86 (patch)
tree776baf44933eb6c506e8872ffa44bb6c9d336a52 /Demo
parent510b46fb42742855eb369afa41750fcd41bda126 (diff)
downloadcpython-98900bc7bb4ecb01243b079ce975f36524aa3c86.zip
cpython-98900bc7bb4ecb01243b079ce975f36524aa3c86.tar.gz
cpython-98900bc7bb4ecb01243b079ce975f36524aa3c86.tar.bz2
Use True; value returned from main is unused
Diffstat (limited to 'Demo')
-rw-r--r--Demo/curses/rain.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/curses/rain.py b/Demo/curses/rain.py
index 69794b3..9d46e6e 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(' '):