From 47c5f5c9a9891cc296e989d8f29ffb74ef7738a3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 1 Oct 2011 22:42:22 -0700 Subject: [PATCH] whirlpool.py: handle xrange for python3 --- pym/portage/util/whirlpool.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pym/portage/util/whirlpool.py b/pym/portage/util/whirlpool.py index 3e7cd7134..5f5c76b4b 100644 --- a/pym/portage/util/whirlpool.py +++ b/pym/portage/util/whirlpool.py @@ -25,6 +25,10 @@ ## ## This Python implementation is therefore also placed in the public domain. +import sys +if sys.hexversion >= 0x3000000: + xrange = range + #block_size = 64 digest_size = 64 digestsize = 64 -- 2.26.2