projects
/
igor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c9a7bf
)
Use integer division in Field.indexes for Python 3 compatibility.
author
W. Trevor King
<wking@tremily.us>
Sat, 21 Jul 2012 12:53:42 +0000
(08:53 -0400)
committer
W. Trevor King
<wking@tremily.us>
Sat, 21 Jul 2012 12:54:49 +0000
(08:54 -0400)
igor/struct.py
patch
|
blob
|
history
diff --git
a/igor/struct.py
b/igor/struct.py
index 4887a146b68bacf9ec2ce805a45d088c461b36ad..2885da44528e04df573e845842267babec90b081 100644
(file)
--- 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):