Mercurial > hg
view mercurial/utils/hashutil.py @ 44847:11592ce6a711
phabricator: avoid passing None to pycompat.fsdecode
Differential Revision: https://phab.mercurial-scm.org/D8525
author | Steve Fink <sfink@mozilla.com> |
---|---|
date | Thu, 27 Feb 2020 09:54:34 -0800 |
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