##// END OF EJS Templates
core: migrate uses of hashlib.sha1 to hashutil.sha1...
core: migrate uses of hashlib.sha1 to hashutil.sha1 Differential Revision: https://phab.mercurial-scm.org/D7849

File last commit:

r44511:0803f803 default
r44512:4ebd162f default
Show More
hashutil.py
9 lines | 190 B | text/x-python | PythonLexer
from __future__ import absolute_import
import hashlib
try:
from mercurial.thirdparty import sha1dc
sha1 = sha1dc.sha1
except (ImportError, AttributeError):
sha1 = hashlib.sha1