diff options
-rw-r--r-- | pym/portage/dbapi/vartree.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 14c5360e2..f2d0d1a77 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -787,7 +787,7 @@ class vardbapi(dbapi): counter, = self.aux_get(cpv, aux_keys) except KeyError: continue - h.update(counter) + h.update(counter.encode()) return h.hexdigest() def cpv_inject(self, mycpv): @@ -1378,7 +1378,7 @@ class vardbapi(dbapi): def _hash_str(self, s): h = self._new_hash() - h.update(s) + h.update(s.encode()) h = h.hexdigest() h = h[-self._hex_chars:] h = int(h, 16) |