In python-3.0, integer division results in a float, so convert back to int.
authorZac Medico <zmedico@gentoo.org>
Fri, 20 Feb 2009 08:10:38 +0000 (08:10 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 20 Feb 2009 08:10:38 +0000 (08:10 -0000)
svn path=/main/trunk/; revision=12663

pym/portage/dbapi/vartree.py

index 0685382a5079cd31ee0bf842a823d78d62e7d4ec..4877e68a93d138be950596fe3e2c9d902e5976d2 100644 (file)
@@ -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