From 9de7d060b8f2e843cc04b9b09709f9793a2f518c Mon Sep 17 00:00:00 2001 From: Peng Yong Date: Tue, 10 Dec 2013 23:06:46 +0800 Subject: [PATCH] gevent.coros is deprecated in gevent 1.0 --- src/plivo/core/freeswitch/eventsocket.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plivo/core/freeswitch/eventsocket.py b/src/plivo/core/freeswitch/eventsocket.py index 52a9e09e..7018e5f1 100644 --- a/src/plivo/core/freeswitch/eventsocket.py +++ b/src/plivo/core/freeswitch/eventsocket.py @@ -10,7 +10,10 @@ import gevent import gevent.event import gevent.socket as socket -from gevent.coros import RLock +try: + from gevent.lock import RLock +except: + from gevent.coros import RLock import gevent.pool from gevent import GreenletExit