diff mercurial/util.py @ 44060:a61287a95dc3

core: migrate uses of hashlib.sha1 to hashutil.sha1 Differential Revision: https://phab.mercurial-scm.org/D7849
author Augie Fackler <augie@google.com>
date Mon, 13 Jan 2020 17:15:14 -0500
parents 8ed8dfbeabb9
children 09f3e003fc2a
line wrap: on
line diff
--- a/mercurial/util.py	Mon Jan 13 17:14:19 2020 -0500
+++ b/mercurial/util.py	Mon Jan 13 17:15:14 2020 -0500
@@ -53,6 +53,7 @@
 )
 from .utils import (
     compression,
+    hashutil,
     procutil,
     stringutil,
 )
@@ -197,7 +198,7 @@
 
 DIGESTS = {
     b'md5': hashlib.md5,
-    b'sha1': hashlib.sha1,
+    b'sha1': hashutil.sha1,
     b'sha512': hashlib.sha512,
 }
 # List of digest types from strongest to weakest