##// END OF EJS Templates
parselist: move the function from config to stringutil...
parselist: move the function from config to stringutil We move the function in a lower level module to avoid cycle. It moves next to `parsebool` who had to migrate for the same reasons. Differential Revision: https://phab.mercurial-scm.org/D10449

File last commit:

r47543:521ac0d7 stable
r47960:b0e92313 default
Show More
hashutil.py
10 lines | 215 B | text/x-python | PythonLexer
from __future__ import absolute_import
import hashlib
try:
from ..thirdparty import sha1dc # pytype: disable=import-error
sha1 = sha1dc.sha1
except (ImportError, AttributeError):
sha1 = hashlib.sha1