diff options
author | mathieui <mathieui@mathieui.net> | 2015-09-23 23:23:02 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2015-09-23 23:23:02 +0200 |
commit | 4dba6970757297910731238ce99d78fcc40bbfac (patch) | |
tree | 6ef136c9c269b9084fd6798e2a9d3738caf92d77 | |
parent | e42d651d7ed56375523f91076295fc5f388a8de0 (diff) | |
download | slixmpp-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__.py | 3 |
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()) |