##// END OF EJS Templates
sslutil: migrate to hashutil.sha1 instead of hashlib.sha1...
sslutil: migrate to hashutil.sha1 instead of hashlib.sha1 This is a straight-line replacement like the others, but I split it out since it's used in a network context and I'm not sure this is appropriate (we should probably drop support for sha1 fingerprints over TLS) and wanted this to be easily dropped. Differential Revision: https://phab.mercurial-scm.org/D7850

File last commit:

r44511:0803f803 default
r44513:fde05ece 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