view mercurial/utils/hashutil.py @ 44650:3f29c5edac8e stable

Added signature for changeset 8fca7e8449a8
author Augie Fackler <raf@durin42.com>
date Thu, 02 Apr 2020 12:05:41 -0400
parents 7126d8b8e0e6
children 521ac0d7047f
line wrap: on
line source

from __future__ import absolute_import

import hashlib

try:
    from ..thirdparty import sha1dc

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