From 69e98dbe018d80c8106de092ded8f09535607003 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 21 Jul 2012 08:53:42 -0400 Subject: [PATCH] Use integer division in Field.indexes for Python 3 compatibility. --- igor/struct.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/igor/struct.py b/igor/struct.py index 4887a14..2885da4 100644 --- a/igor/struct.py +++ b/igor/struct.py @@ -193,7 +193,7 @@ class Field (object): index = [] for j,c in enumerate(reversed(self.count)): index.insert(0, i % c) - i /= c + i //= c yield index def pack_data(self, data=None): -- 2.26.2