##// END OF EJS Templates
interfaces: convert `repository.ifileindex` from zope `Attribute` attrs...
interfaces: convert `repository.ifileindex` from zope `Attribute` attrs This is the same transformation as b455dfddfed0 did for dirstate.

File last commit:

r52755:607e94e0 default
r53369:0d4ead4d default
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