projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
548a530
)
In python-3.0, integer division results in a float, so convert back to int.
author
Zac Medico
<zmedico@gentoo.org>
Wed, 11 Mar 2009 06:01:15 +0000
(06:01 -0000)
committer
Zac 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
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/vartree.py
b/pym/portage/dbapi/vartree.py
index 6dceb8144457425be2d47bfb1a04f9faaf339627..3c8ece366eef9adb5d7e4697bd1a261f940c529c 100644
(file)
--- 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