diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-03-11 06:01:15 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-03-11 06:01:15 +0000 |
commit | 808cf32ebe9954acaed6ff5aacafd688e6ee5150 (patch) | |
tree | 41ea21d2c5121ef65a6f432463778492da964480 /pym | |
parent | 548a5301c6d6390ba11808ee91247c9ab649574a (diff) | |
download | portage-808cf32ebe9954acaed6ff5aacafd688e6ee5150.tar.gz portage-808cf32ebe9954acaed6ff5aacafd688e6ee5150.tar.bz2 portage-808cf32ebe9954acaed6ff5aacafd688e6ee5150.zip |
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
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage/dbapi/vartree.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |