From 6eaea9aa6e95bd6c96e54323b861feac0a20f58c Mon Sep 17 00:00:00 2001 From: root Date: Sat, 5 Dec 2015 12:31:58 +0000 Subject: [PATCH] fix integer division for Py3 --- moto/kinesis/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moto/kinesis/models.py b/moto/kinesis/models.py index 01a83a73e..5e549c528 100644 --- a/moto/kinesis/models.py +++ b/moto/kinesis/models.py @@ -107,8 +107,8 @@ class Stream(object): izip_longest = itertools.izip_longest for index, start, end in izip_longest(range(shard_count), - range(0,2**128,2**128/shard_count), - range(2**128/shard_count,2**128,2**128/shard_count), + range(0,2**128,2**128//shard_count), + range(2**128//shard_count,2**128,2**128//shard_count), fillvalue=2**128): shard = Shard(index, start, end) self.shards[shard.shard_id] = shard