make libevent 2.4-compatible
This commit is contained in:
@@ -117,7 +117,7 @@ class Hub(object):
|
||||
|
||||
@property
|
||||
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):
|
||||
if read:
|
||||
|
Reference in New Issue
Block a user