From: Zac Medico Date: Fri, 20 Feb 2009 08:10:38 +0000 (-0000) Subject: In python-3.0, integer division results in a float, so convert back to int. X-Git-Tag: v2.2_rc24~148 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c2fd5db98cb16cd1b5f8916865d77f7c0da9b676;p=portage.git In python-3.0, integer division results in a float, so convert back to int. svn path=/main/trunk/; revision=12663 --- 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