Mercurial > hg
view mercurial/utils/hashutil.py @ 46102:7ce24d3761e8
procutil: don't assign stdin to None, use os.devnull instead
It will be painful to take care of procutil.stdin being None everywhere.
Thanks to Yuya who recommended it.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Thu, 10 Dec 2020 14:03:46 +0530 |
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