From af77ba463b1b57ed77bf792acd41998e503f6939 Mon Sep 17 00:00:00 2001 From: dessant Date: Wed, 14 Oct 2015 00:03:29 +0300 Subject: [PATCH] use explicit floor division, fixes #3694 --- examples/canvas/tesselate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/canvas/tesselate.py b/examples/canvas/tesselate.py index 8571e10f5..dab7e0f8e 100644 --- a/examples/canvas/tesselate.py +++ b/examples/canvas/tesselate.py @@ -114,7 +114,7 @@ class ShapeBuilder(FloatLayout): Color(c, 1, 1, mode="hsv") c += 0.3 indices = [0] - for i in range(1, len(vertices) / 4): + for i in range(1, len(vertices) // 4): if i > 0: indices.append(i) indices.append(i)