better __name__ for __class__
This commit is contained in:
@@ -32,7 +32,7 @@ class socket_rwdescriptor:
|
|||||||
return self.logstr
|
return self.logstr
|
||||||
|
|
||||||
|
|
||||||
class Hub:
|
class TwistedHub(object):
|
||||||
# wrapper around reactor that runs reactor's main loop in a separate greenlet.
|
# 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
|
# 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
|
# blocking, call hub.switch() (then your blocking operation should switch back to you
|
||||||
@@ -147,6 +147,7 @@ class Hub:
|
|||||||
from twisted.internet import reactor
|
from twisted.internet import reactor
|
||||||
return reactor.callLater(seconds, func, *args, **kwargs)
|
return reactor.callLater(seconds, func, *args, **kwargs)
|
||||||
|
|
||||||
|
Hub = TwistedHub
|
||||||
|
|
||||||
class DaemonicThread(threading.Thread):
|
class DaemonicThread(threading.Thread):
|
||||||
def _set_daemon(self):
|
def _set_daemon(self):
|
||||||
|
Reference in New Issue
Block a user