mercurial/utils/hashutil.py
author Raphaël Gomès <rgomes@octobus.net>
Wed, 12 May 2021 10:24:17 +0200
changeset 47177 5d5abfdc32d8
parent 46785 521ac0d7047f
child 48875 6000f5b25c9b
permissions -rw-r--r--
contrib: fix typo I forgot to fix it in flight, this commit will do fine.

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