summaryrefslogtreecommitdiffstats
path: root/Demo/curses/life.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-07-24 17:57:36 (GMT)
committerGuido van Rossum <guido@python.org>2007-07-24 17:57:36 (GMT)
commit3f6dd68e2a006ca5ef4161ca395a7503bfba2262 (patch)
tree9a708e795ecb53f9f13d958169ed48546b1a6b3c /Demo/curses/life.py
parent6c95da384e9ca06a82440130f5caf08e23151bdb (diff)
downloadcpython-3f6dd68e2a006ca5ef4161ca395a7503bfba2262.zip
cpython-3f6dd68e2a006ca5ef4161ca395a7503bfba2262.tar.gz
cpython-3f6dd68e2a006ca5ef4161ca395a7503bfba2262.tar.bz2
Make the last two curses demos work again -- they were using float
division. The other curses demos all work fine, so I'm more confident that the curses library actually works. (Don't try to display non-ASCII characters, of course.)
Diffstat (limited to 'Demo/curses/life.py')
-rwxr-xr-xDemo/curses/life.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/curses/life.py b/Demo/curses/life.py
index ec79f9e..ddff8fa 100755
--- a/Demo/curses/life.py
+++ b/Demo/curses/life.py
@@ -158,7 +158,7 @@ def keyloop(stdscr):
board.display(update_board=False)
# xpos, ypos are the cursor's position
- xpos, ypos = board.X/2, board.Y/2
+ xpos, ypos = board.X//2, board.Y//2
# Main loop:
while (1):