whirlpool.py: handle xrange for python3
authorZac Medico <zmedico@gentoo.org>
Sun, 2 Oct 2011 05:42:22 +0000 (22:42 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 2 Oct 2011 05:42:22 +0000 (22:42 -0700)
pym/portage/util/whirlpool.py

index 3e7cd71346d5abccaa16441d4b42527452a8cec2..5f5c76b4b78a41b6c0466a2aeb66adebfe18d566 100644 (file)
 ##
 ## 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