From: W. Trevor King Date: Sat, 21 Jul 2012 12:53:42 +0000 (-0400) Subject: Use integer division in Field.indexes for Python 3 compatibility. X-Git-Tag: v0.2~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=69e98dbe018d80c8106de092ded8f09535607003;p=igor.git Use integer division in Field.indexes for Python 3 compatibility. --- 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):