From 6667c183022a03c8e73cfded26a1cf1f4fde1c13 Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Mon, 27 Oct 2008 22:57:59 +0600 Subject: [PATCH] better __name__ for __class__ --- eventlet/hubs/twistedr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eventlet/hubs/twistedr.py b/eventlet/hubs/twistedr.py index c49edd3..1d360e4 100644 --- a/eventlet/hubs/twistedr.py +++ b/eventlet/hubs/twistedr.py @@ -32,7 +32,7 @@ class socket_rwdescriptor: return self.logstr -class Hub: +class TwistedHub(object): # wrapper around reactor that runs reactor's main loop in a separate greenlet. # whenever you need to wait, i.e. inside a call that must appear # blocking, call hub.switch() (then your blocking operation should switch back to you @@ -147,6 +147,7 @@ class Hub: from twisted.internet import reactor return reactor.callLater(seconds, func, *args, **kwargs) +Hub = TwistedHub class DaemonicThread(threading.Thread): def _set_daemon(self):