summaryrefslogtreecommitdiff
path: root/slixmpp/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'slixmpp/__init__.py')
-rw-r--r--slixmpp/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/slixmpp/__init__.py b/slixmpp/__init__.py
index 0730cc60..caa39db7 100644
--- a/slixmpp/__init__.py
+++ b/slixmpp/__init__.py
@@ -9,6 +9,10 @@
import logging
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.jid import JID, InvalidJID