mercurial/utils/hashutil.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Mon, 03 May 2021 12:25:23 +0200
changeset 47180 c9ae2e7fe154
parent 46413 521ac0d7047f
child 48966 6000f5b25c9b
permissions -rw-r--r--
revlog: drop `flush` parameter from `_peek_iscensored` This is not used anywhere. Differential Revision: https://phab.mercurial-scm.org/D10592

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