Mercurial > hg
view mercurial/utils/hashutil.py @ 52001:3af11f3e9980 default tip
zeroconf: fix a warning about a signature mismatch in a method override
Caught by PyCharm. It looks like the `hdr` arg is mostly unused (thus why it
was missing in some cases), so pass along an empty string where needed.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 13 Oct 2024 14:46:23 +0200 |
parents | f4733654f144 |
children |
line wrap: on
line source
from __future__ import annotations import hashlib try: from ..thirdparty import sha1dc # pytype: disable=import-error sha1 = sha1dc.sha1 except (ImportError, AttributeError): sha1 = hashlib.sha1