From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RAEp2-0002z9-6f for garchives@archives.gentoo.org; Sun, 02 Oct 2011 05:42:44 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B25B821C0DB; Sun, 2 Oct 2011 05:42:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 7F92821C0DB for ; Sun, 2 Oct 2011 05:42:36 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0126C1B401F for ; Sun, 2 Oct 2011 05:42:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 51E4D8004B for ; Sun, 2 Oct 2011 05:42:35 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <47c5f5c9a9891cc296e989d8f29ffb74ef7738a3.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/util/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/util/whirlpool.py X-VCS-Directories: pym/portage/util/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 47c5f5c9a9891cc296e989d8f29ffb74ef7738a3 Date: Sun, 2 Oct 2011 05:42:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 4c9fcc81b8ca202732a89bd99d7c7f23 commit: 47c5f5c9a9891cc296e989d8f29ffb74ef7738a3 Author: Zac Medico gentoo org> AuthorDate: Sun Oct 2 05:42:22 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Sun Oct 2 05:42:22 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D47c5f5c9 whirlpool.py: handle xrange for python3 --- pym/portage/util/whirlpool.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/pym/portage/util/whirlpool.py b/pym/portage/util/whirlpool.p= y index 3e7cd71..5f5c76b 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 dom= ain. =20 +import sys +if sys.hexversion >=3D 0x3000000: + xrange =3D range + #block_size =3D 64 digest_size =3D 64 digestsize =3D 64