fixed typo and whitespace

This commit is contained in:
Denis Bilenko
2008-10-10 16:11:47 +07:00
parent 121c8d313a
commit ed6ae02c6c

View File

@@ -68,7 +68,7 @@ class Hub:
def run(self, installSignalHandlers=True): def run(self, installSignalHandlers=True):
# main loop, executed in a dedicated greenlet # main loop, executed in a dedicated greenlet
from twisted.internet import reactor from twisted.internet import reactor
assert Hub.state in [1, 3], ('Run function is not reentrant', Hub.state) assert Hub.state in [1, 3], ('run function is not reentrant', Hub.state)
if Hub.state == 1: if Hub.state == 1:
reactor.startRunning(installSignalHandlers=installSignalHandlers) reactor.startRunning(installSignalHandlers=installSignalHandlers)