diff --git a/haigha2/transports/gevent_transport.py b/haigha2/transports/gevent_transport.py index e3260a3..1653303 100644 --- a/haigha2/transports/gevent_transport.py +++ b/haigha2/transports/gevent_transport.py @@ -11,7 +11,10 @@ try: import gevent import gevent.ssl - import gevent._socket2 + try: + import gevent._socket2 + except ImportError: + import gevent._socket3 import gevent.socket import gevent.ssl from gevent.event import Event