In python-3.0, integer division results in a float, so convert back to int.
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 06:01:15 +0000 (06:01 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 06:01:15 +0000 (06:01 -0000)
(trunk r12663)

svn path=/main/branches/2.1.6/; revision=12926

pym/portage/dbapi/vartree.py

index 6dceb8144457425be2d47bfb1a04f9faaf339627..3c8ece366eef9adb5d7e4697bd1a261f940c529c 100644 (file)
@@ -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