Mercurial > hg
view mercurial/utils/hashutil.py @ 48858:9d01ab54df3f
tests: collapse elif PYTHON3 block
PYTHON3 is always True now so this logic should be identical as to before.
Differential Revision: https://phab.mercurial-scm.org/D12236
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 20 Feb 2022 13:19:21 -0700 |
parents | 521ac0d7047f |
children | 6000f5b25c9b |
line wrap: on
line source
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