make libevent 2.4-compatible
This commit is contained in:
@@ -117,7 +117,7 @@ class Hub(object):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def running(self):
|
def running(self):
|
||||||
return True if self.greenlet else False
|
return bool(self.greenlet)
|
||||||
|
|
||||||
def add_descriptor(self, fileno, read=None, write=None, exc=None):
|
def add_descriptor(self, fileno, read=None, write=None, exc=None):
|
||||||
if read:
|
if read:
|
||||||
|
Reference in New Issue
Block a user