AV-98-fork

A fork of https://tildegit.org/solderpunk/AV-98
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 8e5e175a7e3e475ca7375c539ccd7e1688cb56d9
parent c934237cbe3af4bc328ce156747d4bd756993927
Author: Solderpunk <solderpunk@sdf.org>
Date:   Thu,  2 Apr 2020 22:15:39 +0200

Fix TLS for Python 3.8.  See #6.

Diffstat:
Mav98.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/av98.py b/av98.py @@ -73,7 +73,7 @@ context = ssl.SSLContext(protocol) context.check_hostname = False context.verify_mode = ssl.CERT_NONE # Impose minimum TLS version -if sys.version_info.minor == 7: +if sys.version_info.minor >= 7: context.minimum_version = ssl.TLSVersion.TLSv1_2 else: context.options |= ssl.OP_NO_TLSv1_1