From 4dba6970757297910731238ce99d78fcc40bbfac Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 23 Sep 2015 23:23:02 +0200 Subject: Fix support for python 3.4 <= 3.4.2 asyncio module is provisional, which means it gets updated everytime --- slixmpp/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) -- cgit v1.2.3