diff options
author | mathieui <mathieui@mathieui.net> | 2018-08-07 23:20:38 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2018-08-07 23:20:38 +0200 |
commit | 7738a01311bdac1575dea89bda9eb9dac55debc0 (patch) | |
tree | 9e84adf46dc223c582d1e03289e1050b583d969a /slixmpp/__init__.py | |
parent | a9abed615188bff2da7cf7865e07fe1aefa24b61 (diff) | |
download | slixmpp-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__.py | 3 |
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()) |