##// END OF EJS Templates
config: move `rcutil` module under a new `mercurial.configuration` module...
config: move `rcutil` module under a new `mercurial.configuration` module This new module aims at gathering configuration related code, rcutil definitely deserves to live there.

File last commit:

r52756:f4733654 default
r53313:0a81f3ef default
Show More
hashutil.py
10 lines | 211 B | text/x-python | PythonLexer
Matt Harbison
typing: add `from __future__ import annotations` to most files...
r52756 from __future__ import annotations
Augie Fackler
hashutil: new package for hashing-related features...
r44516 import hashlib
try:
Matt Harbison
typing: disable import error warnings that are already handled...
r47543 from ..thirdparty import sha1dc # pytype: disable=import-error
Augie Fackler
hashutil: new package for hashing-related features...
r44516
sha1 = sha1dc.sha1
except (ImportError, AttributeError):
sha1 = hashlib.sha1