Use integer division in Field.indexes for Python 3 compatibility.
authorW. Trevor King <wking@tremily.us>
Sat, 21 Jul 2012 12:53:42 +0000 (08:53 -0400)
committerW. Trevor King <wking@tremily.us>
Sat, 21 Jul 2012 12:54:49 +0000 (08:54 -0400)
igor/struct.py

index 4887a146b68bacf9ec2ce805a45d088c461b36ad..2885da44528e04df573e845842267babec90b081 100644 (file)
@@ -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):