summaryrefslogtreecommitdiff
path: root/slixmpp/__init__.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2018-08-07 23:20:38 +0200
committermathieui <mathieui@mathieui.net>2018-08-07 23:20:38 +0200
commit7738a01311bdac1575dea89bda9eb9dac55debc0 (patch)
tree9e84adf46dc223c582d1e03289e1050b583d969a /slixmpp/__init__.py
parenta9abed615188bff2da7cf7865e07fe1aefa24b61 (diff)
downloadslixmpp-7738a01311bdac1575dea89bda9eb9dac55debc0.tar.gz
slixmpp-7738a01311bdac1575dea89bda9eb9dac55debc0.tar.bz2
slixmpp-7738a01311bdac1575dea89bda9eb9dac55debc0.tar.xz
slixmpp-7738a01311bdac1575dea89bda9eb9dac55debc0.zip
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__.
Diffstat (limited to 'slixmpp/__init__.py')
-rw-r--r--slixmpp/__init__.py3
1 files changed, 0 insertions, 3 deletions
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())