From: Zac Medico Date: Wed, 11 Mar 2009 06:01:15 +0000 (-0000) Subject: In python-3.0, integer division results in a float, so convert back to int. X-Git-Tag: v2.1.6.8~151 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=808cf32ebe9954acaed6ff5aacafd688e6ee5150;p=portage.git In python-3.0, integer division results in a float, so convert back to int. (trunk r12663) svn path=/main/branches/2.1.6/; revision=12926 --- diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 6dceb8144..3c8ece366 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -687,7 +687,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