summaryrefslogtreecommitdiffstats
path: root/Demo/curses/life.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2008-09-13 01:22:08 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2008-09-13 01:22:08 (GMT)
commit949f71b446723cd05404e3f0e9c0a793b9b99001 (patch)
treea2d8156064cc6f877ef2750a363ec79e3da8a9b6 /Demo/curses/life.py
parentdfd6b86d6ba126f3eeefee861f8ebbb3c8df46d5 (diff)
downloadcpython-949f71b446723cd05404e3f0e9c0a793b9b99001.zip
cpython-949f71b446723cd05404e3f0e9c0a793b9b99001.tar.gz
cpython-949f71b446723cd05404e3f0e9c0a793b9b99001.tar.bz2
#687648 from Robert Schuppenies: use classic division. (RM Barry gave permission to update the demos.)
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 a5bbed2..98fb62e 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):