Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Zac Medico (zmedico)" <zmedico@g.o>
Subject: portage r12663 - main/trunk/pym/portage/dbapi
Date: Fri, 20 Feb 2009 08:10:39 +0000
Author: zmedico
Date: 2009-02-20 08:10:38 +0000 (Fri, 20 Feb 2009)
New Revision: 12663

Modified:
   main/trunk/pym/portage/dbapi/vartree.py
Log:
In python-3.0, integer division results in a float, so convert back to int.


Modified: main/trunk/pym/portage/dbapi/vartree.py
===================================================================
--- main/trunk/pym/portage/dbapi/vartree.py	2009-02-20 07:16:16 UTC (rev 12662)
+++ main/trunk/pym/portage/dbapi/vartree.py	2009-02-20 08:10:38 UTC (rev 12663)
@@ -1342,7 +1342,7 @@
 			from md5 import new as _new_hash
 
 		_hash_bits = 16
-		_hex_chars = _hash_bits / 4
+		_hex_chars = int(_hash_bits / 4)
 
 		def __init__(self, vardb):
 			self._vardb = vardb



Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in dev-cpp/sptk: ChangeLog sptk-3.5.8.10.ebuild
Next by thread:
gentoo-x86 commit in x11-drivers/xf86-video-ati/files/old_hw_data: - New directory
Previous by date:
gentoo-x86 commit in dev-cpp/sptk: ChangeLog sptk-3.5.8.8.ebuild
Next by date:
gentoo-x86 commit in x11-drivers/xf86-video-ati/files/old_hw_data: - New directory


Updated Mar 31, 2012

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.