Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/util/
Date: Sun, 02 Oct 2011 05:42:44
Message-Id: 47c5f5c9a9891cc296e989d8f29ffb74ef7738a3.zmedico@gentoo
1 commit: 47c5f5c9a9891cc296e989d8f29ffb74ef7738a3
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 2 05:42:22 2011 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 2 05:42:22 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=47c5f5c9
7
8 whirlpool.py: handle xrange for python3
9
10 ---
11 pym/portage/util/whirlpool.py | 4 ++++
12 1 files changed, 4 insertions(+), 0 deletions(-)
13
14 diff --git a/pym/portage/util/whirlpool.py b/pym/portage/util/whirlpool.py
15 index 3e7cd71..5f5c76b 100644
16 --- a/pym/portage/util/whirlpool.py
17 +++ b/pym/portage/util/whirlpool.py
18 @@ -25,6 +25,10 @@
19 ##
20 ## This Python implementation is therefore also placed in the public domain.
21
22 +import sys
23 +if sys.hexversion >= 0x3000000:
24 + xrange = range
25 +
26 #block_size = 64
27 digest_size = 64
28 digestsize = 64