view mercurial/utils/hashutil.py @ 51130:b6439a842962 stable

Added tag 6.6 for changeset 26c57e7a0890
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 21 Nov 2023 16:18:23 +0100
parents 6000f5b25c9b
children f4733654f144
line wrap: on
line source

import hashlib

try:
    from ..thirdparty import sha1dc  # pytype: disable=import-error

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