slixmpp: remove asyncio hack for older python versions

This commit is contained in:
mathieui 2021-02-11 20:18:00 +01:00
parent 7cde0db4aa
commit ba7c7f4bb9

View file

@ -6,11 +6,6 @@
import logging import logging
logging.getLogger(__name__).addHandler(logging.NullHandler()) logging.getLogger(__name__).addHandler(logging.NullHandler())
import asyncio
# Required for python < 3.7 to use the old ssl implementation
# and manage to do starttls as an unintended side effect
asyncio.sslproto._is_sslproto_available = lambda: False
from slixmpp.stanza import Message, Presence, Iq from slixmpp.stanza import Message, Presence, Iq
from slixmpp.jid import JID, InvalidJID from slixmpp.jid import JID, InvalidJID
from slixmpp.xmlstream.stanzabase import ET, ElementBase, register_stanza_plugin from slixmpp.xmlstream.stanzabase import ET, ElementBase, register_stanza_plugin