mercurial/utils/hashutil.py
author Raphaël Gomès <rgomes@octobus.net>
Wed, 03 Mar 2021 14:00:45 +0100
changeset 46626 ee91966aec0f
parent 44059 7126d8b8e0e6
child 46785 521ac0d7047f
permissions -rw-r--r--
requirements: add constant for revlog v1 requirement Since this series is adding a new requirement, we might as well clean up while we're here. Differential Revision: https://phab.mercurial-scm.org/D10105

from __future__ import absolute_import

import hashlib

try:
    from ..thirdparty import sha1dc

    sha1 = sha1dc.sha1
except (ImportError, AttributeError):
    sha1 = hashlib.sha1