summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/util/whirlpool.py4
1 files changed, 4 insertions, 0 deletions
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