mirror of https://github.com/python/cpython
Use True; value returned from main is unused
This commit is contained in:
parent
510b46fb42
commit
98900bc7bb
|
@ -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(' '):
|
||||
|
|
Loading…
Reference in New Issue