In python3 xrange has been renamed to range
This commit is contained in:
parent
b614d9b792
commit
627d7197f7
|
@ -148,7 +148,7 @@ class WordHasher(object):
|
|||
def to_bytes(self, integer):
|
||||
"""Convert a 48bit `integer` to a list of 6bytes"""
|
||||
bytes = [integer & 0b11111111]
|
||||
for n in xrange(1,6):
|
||||
for n in range(1,6):
|
||||
div = 2**(n*8)
|
||||
bytes.append((integer/div) & 0b11111111)
|
||||
|
||||
|
|
Loading…
Reference in New Issue