summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-02-20 08:10:38 +0000
committerZac Medico <zmedico@gentoo.org>2009-02-20 08:10:38 +0000
commitc2fd5db98cb16cd1b5f8916865d77f7c0da9b676 (patch)
tree227327760736750a33444caebc5390284b92c57b
parentff11bfce39a7b86c0d00ecc2d3909665c58dc85d (diff)
downloadportage-c2fd5db98cb16cd1b5f8916865d77f7c0da9b676.tar.gz
portage-c2fd5db98cb16cd1b5f8916865d77f7c0da9b676.tar.bz2
portage-c2fd5db98cb16cd1b5f8916865d77f7c0da9b676.zip
In python-3.0, integer division results in a float, so convert back to int.
svn path=/main/trunk/; revision=12663
-rw-r--r--pym/portage/dbapi/vartree.py2
1 files changed, 1 insertions, 1 deletions
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