[Python-checkins] r46625 - python/trunk/Demo/curses/rain.py
andrew.kuchling
python-checkins at python.org
Sun Jun 4 01:02:17 CEST 2006
Author: andrew.kuchling
Date: Sun Jun 4 01:02:15 2006
New Revision: 46625
Modified:
python/trunk/Demo/curses/rain.py
Log:
Use True; value returned from main is unused
Modified: python/trunk/Demo/curses/rain.py
==============================================================================
--- python/trunk/Demo/curses/rain.py (original)
+++ python/trunk/Demo/curses/rain.py Sun Jun 4 01:02:15 2006
@@ -48,7 +48,7 @@
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 @@
ch = stdscr.getch()
if ch == ord('q') or ch == ord('Q'):
- return 0
+ return
elif ch == ord('s'):
stdscr.nodelay(0)
elif ch == ord(' '):
More information about the Python-checkins
mailing list