From: Zac Medico Date: Sun, 2 Oct 2011 05:42:22 +0000 (-0700) Subject: whirlpool.py: handle xrange for python3 X-Git-Tag: v2.2.0_alpha61~24 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=47c5f5c9a9891cc296e989d8f29ffb74ef7738a3;p=portage.git whirlpool.py: handle xrange for python3 --- 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