commit:     0dc2b065e16f1bec22b1730c2b2faf06e01d10af
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 28 09:36:55 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Feb 28 22:07:09 2017 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=0dc2b065

vartree: Replace uses of internal portage.checksum._new_md5 var

Use the public hashlib.md5 method that is required for other code in
the module already.

 pym/portage/dbapi/vartree.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index 2a612d162..c421dc50b 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -4690,8 +4690,7 @@ class dblink(object):
                                        os.unlink(mysrc)
                                        os.symlink(myto, mysrc)
 
-                               mymd5 = portage.checksum._new_md5(
-                                       _unicode_encode(myto)).hexdigest()
+                               mymd5 = md5(_unicode_encode(myto)).hexdigest()
 
                        protected = False
                        if stat.S_ISLNK(mymode) or stat.S_ISREG(mymode):
@@ -4725,8 +4724,7 @@ class dblink(object):
                                                # of the link target path 
string is used
                                                # for cfgfiledict (symlinks are
                                                # protected since bug #485598).
-                                               destmd5 = 
portage.checksum._new_md5(
-                                                       
_unicode_encode(mydest_link)).hexdigest()
+                                               destmd5 = 
md5(_unicode_encode(mydest_link)).hexdigest()
 
                                        elif stat.S_ISREG(mydmode):
                                                destmd5 = perform_md5(mydest,

Reply via email to