mercurial/utils/hashutil.py
author Martin von Zweigbergk <martinvonz@google.com>
Fri, 30 Oct 2020 13:26:18 -0700
changeset 45866 996cd73431a3
parent 44059 7126d8b8e0e6
child 46785 521ac0d7047f
permissions -rw-r--r--
help: document the new [command-templates] config section Differential Revision: https://phab.mercurial-scm.org/D9265

from __future__ import absolute_import

import hashlib

try:
    from ..thirdparty import sha1dc

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