From c2fd5db98cb16cd1b5f8916865d77f7c0da9b676 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 20 Feb 2009 08:10:38 +0000 Subject: In python-3.0, integer division results in a float, so convert back to int. svn path=/main/trunk/; revision=12663 --- pym/portage/dbapi/vartree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym') diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 0685382a5..4877e68a9 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -1342,7 +1342,7 @@ class vardbapi(dbapi): 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 -- cgit v1.2.3-1-g7c22