From 808cf32ebe9954acaed6ff5aacafd688e6ee5150 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 Mar 2009 06:01:15 +0000 Subject: 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 --- pym/portage/dbapi/vartree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-1-g7c22