summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-09-23 23:23:02 +0200
committermathieui <mathieui@mathieui.net>2015-09-23 23:23:02 +0200
commit4dba6970757297910731238ce99d78fcc40bbfac (patch)
tree6ef136c9c269b9084fd6798e2a9d3738caf92d77
parente42d651d7ed56375523f91076295fc5f388a8de0 (diff)
downloadslixmpp-4dba6970757297910731238ce99d78fcc40bbfac.tar.gz
slixmpp-4dba6970757297910731238ce99d78fcc40bbfac.tar.bz2
slixmpp-4dba6970757297910731238ce99d78fcc40bbfac.tar.xz
slixmpp-4dba6970757297910731238ce99d78fcc40bbfac.zip
Fix support for python 3.4 <= 3.4.2
asyncio module is provisional, which means it gets updated everytime
-rw-r--r--slixmpp/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/slixmpp/__init__.py b/slixmpp/__init__.py
index c09446df..46804bf5 100644
--- a/slixmpp/__init__.py
+++ b/slixmpp/__init__.py
@@ -7,7 +7,8 @@
"""
import asyncio
-asyncio.sslproto._is_sslproto_available=lambda: False
+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())