Fix support for python 3.4 <= 3.4.2

asyncio module is provisional, which means it gets updated everytime
This commit is contained in:
mathieui 2015-09-23 23:23:02 +02:00
parent e42d651d7e
commit 4dba697075
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -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())