better __name__ for __class__

This commit is contained in:
Denis Bilenko
2008-10-27 22:57:59 +06:00
parent 00e2f04921
commit 6667c18302

View File

@@ -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):