summaryrefslogtreecommitdiffstats
path: root/Demo/scripts/markov.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2008-09-13 01:43:28 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2008-09-13 01:43:28 (GMT)
commit2a9b9cbea08c7c22a328926b0e0719fb197743a0 (patch)
tree51c8930c097a35c97db9cdae6f5af889424cf9bd /Demo/scripts/markov.py
parente91fcbdf691c687d1195fad342564e0b3442f444 (diff)
downloadcpython-2a9b9cbea08c7c22a328926b0e0719fb197743a0.zip
cpython-2a9b9cbea08c7c22a328926b0e0719fb197743a0.tar.gz
cpython-2a9b9cbea08c7c22a328926b0e0719fb197743a0.tar.bz2
#687648 from Robert Schuppenies: use classic division.
Diffstat (limited to 'Demo/scripts/markov.py')
-rwxr-xr-xDemo/scripts/markov.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/scripts/markov.py b/Demo/scripts/markov.py
index bddec56..7a4fc01 100755
--- a/Demo/scripts/markov.py
+++ b/Demo/scripts/markov.py
@@ -110,7 +110,7 @@ def test():
def tuple(list):
if len(list) == 0: return ()
if len(list) == 1: return (list[0],)
- i = len(list)/2
+ i = len(list)//2
return tuple(list[:i]) + tuple(list[i:])
if __name__ == "__main__":