In python3 xrange has been renamed to range

This commit is contained in:
mmcwilliams 2024-06-28 14:55:10 -04:00
parent b614d9b792
commit 627d7197f7
1 changed files with 1 additions and 1 deletions

View File

@ -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)