Mercurial > hg-stable
changeset 48916:726b3601a534
setup: remove ssl check that only matters on 2.7
Differential Revision: https://phab.mercurial-scm.org/D12269
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 02 Mar 2022 10:06:37 -0500 |
parents | a6970465e026 |
children | 3ce8001fd768 |
files | setup.py |
diffstat | 1 files changed, 0 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/setup.py Wed Mar 02 10:05:45 2022 -0500 +++ b/setup.py Wed Mar 02 10:06:37 2022 -0500 @@ -43,19 +43,6 @@ import ssl -try: - ssl.SSLContext -except AttributeError: - error = """ -The `ssl` module does not have the `SSLContext` class. This indicates an old -Python version which does not support modern security features (which were -added to Python 2.7 as part of "PEP 466"). Please make sure you have installed -at least Python 2.7.9 or a Python version with backports of these security -features. -""" - printf(error, file=sys.stderr) - sys.exit(1) - # ssl.HAS_TLSv1* are preferred to check support but they were added in Python # 3.7. Prior to CPython commit 6e8cda91d92da72800d891b2fc2073ecbc134d98 # (backported to the 3.7 branch), ssl.PROTOCOL_TLSv1_1 / ssl.PROTOCOL_TLSv1_2