From 627d7197f7aef6c5cbac822f98a090c7ce3f9cd2 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Fri, 28 Jun 2024 14:55:10 -0400 Subject: [PATCH] In python3 xrange has been renamed to range --- thesethreewords.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thesethreewords.py b/thesethreewords.py index b3d8c2d..4f68b26 100644 --- a/thesethreewords.py +++ b/thesethreewords.py @@ -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)