##// END OF EJS Templates
setup: use the same code to compute tag from archive...
setup: use the same code to compute tag from archive Let us make sure we use a consistent version across the board.

File last commit:

r52756:f4733654 default
r53133:2b7e3177 stable
Show More
hashutil.py
10 lines | 211 B | text/x-python | PythonLexer
from __future__ import annotations
import hashlib
try:
from ..thirdparty import sha1dc # pytype: disable=import-error
sha1 = sha1dc.sha1
except (ImportError, AttributeError):
sha1 = hashlib.sha1