From 7738a01311bdac1575dea89bda9eb9dac55debc0 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 7 Aug 2018 23:20:38 +0200 Subject: Fix TLS with python 3.7 Use the "new" sslproto API instead of the deprecated TLS API. Also remove the unused "socket" parameter in XMLStream.__init__. --- slixmpp/__init__.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'slixmpp/__init__.py') diff --git a/slixmpp/__init__.py b/slixmpp/__init__.py index 46804bf5..0730cc60 100644 --- a/slixmpp/__init__.py +++ b/slixmpp/__init__.py @@ -6,9 +6,6 @@ See the file LICENSE for copying permission. """ -import asyncio -if hasattr(asyncio, 'sslproto'): # no ssl proto: very old asyncio = no need for this - asyncio.sslproto._is_sslproto_available=lambda: False import logging logging.getLogger(__name__).addHandler(logging.NullHandler()) -- cgit v1.2.3