]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
node.py: hush pyflakes warnings
authorBrian Warner <warner@allmydata.com>
Thu, 24 May 2007 00:54:48 +0000 (17:54 -0700)
committerBrian Warner <warner@allmydata.com>
Thu, 24 May 2007 00:54:48 +0000 (17:54 -0700)
src/allmydata/node.py

index c55fd413fd771011c8746c1c7b6e22cdd05acde6..58e6132a2b25c744b7020e7754dda948e3c9cc52 100644 (file)
@@ -5,7 +5,7 @@ from twisted.application import service
 from twisted.internet import defer, reactor
 from foolscap import Tub, eventual
 from allmydata.util import idlib, iputil, observer
-from allmydata.util.assertutil import _assert, precondition
+from allmydata.util.assertutil import precondition
 
 
 # Just to get their versions:
@@ -62,10 +62,14 @@ class Node(service.MultiService):
 
         self.log("Node constructed.  tahoe version: %s, foolscap version: %s, zfec version: %s" % (allmydata.__version__, foolscap.__version__, zfec.__version__,))
 
+
+    def startService(self):
+        # note: this class can only be started and stopped once.
+        eventual.eventually(self._startService)
+
     def _startService(self):
         precondition(reactor.running)
 
-        # note: this class can only be started and stopped once.
         service.MultiService.startService(self)
         d = defer.succeed(None)
         d.addCallback(lambda res: iputil.get_local_addresses_async())
@@ -77,9 +81,6 @@ class Node(service.MultiService):
             return self
         d.addCallback(_ready)
 
-    def startService(self):
-        foolscap.eventual.eventually(self._startService)
-
     def stopService(self):
         d = self._tub_ready_observerlist.when_fired()
         d.addCallback(lambda ignored_result: service.MultiService.stopService(self))