##// END OF EJS Templates
perf: change the way we approach revlog reading...
perf: change the way we approach revlog reading If the `reading` context manager is available, we should use it over explicit file handle management. This will help us to make file handle management a matter more internal to the revlog.

File last commit:

r49730:6000f5b2 default
r51901:2f1967ff default
Show More
hashutil.py
8 lines | 175 B | text/x-python | PythonLexer
import hashlib
try:
from ..thirdparty import sha1dc # pytype: disable=import-error
sha1 = sha1dc.sha1
except (ImportError, AttributeError):
sha1 = hashlib.sha1