view mercurial/utils/hashutil.py @ 44391:a6fb134bd086

revlog-compression: release note entry for update the config to be a list I updated the changeset, but forgot to phabsend apparently. Differential Revision: https://phab.mercurial-scm.org/D8165
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 26 Feb 2020 17:16:25 +0100
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