D3955: mail: modernize check for Python-with-TLS
yuja (Yuya Nishihara)
phabricator at mercurial-scm.org
Tue Jul 17 13:25:32 UTC 2018
yuja added a comment.
> +def _pyhastls():
> + """Returns true iff Python has TLS support, false otherwise."""
> + try:
> + import ssl
> + getattr(ssl, 'HAS_TLS', False)
> + return True
> + except ImportError:
> + return False
Maybe we can simply remove the check since we've dropped support for
Python 2.5.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D3955
To: durin42, #hg-reviewers
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list