Browse Source

Remove some unused variables

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Daniel Martí 9 years ago
parent
commit
db1397754e
2 changed files with 2 additions and 4 deletions
  1. 2 3
      lib/chutney/TorNet.py
  2. 0 1
      lib/chutney/Traffic.py

+ 2 - 3
lib/chutney/TorNet.py

@@ -297,7 +297,6 @@ class LocalNodeBuilder(NodeBuilder):
         """
         datadir = self._env['dir']
         tor = self._env['tor']
-        idfile = os.path.join(datadir,'keys',"identity_key")
         cmdline = [
             tor,
             "--quiet",
@@ -445,9 +444,9 @@ class LocalNodeController(NodeController):
     def hup(self):
         """Send a SIGHUP to this node, if it's running."""
         pid = self.getPid()
-        running = self.isRunning()
+        running = self.isRunning(pid)
         nick = self._env['nick']
-        if self.isRunning():
+        if running:
             print "Sending sighup to %s"%nick
             os.kill(pid, signal.SIGHUP)
             return True

+ 0 - 1
lib/chutney/Traffic.py

@@ -312,7 +312,6 @@ import sys
 def main():
     """Test the TrafficTester by sending and receiving some data."""
     DATA = "a foo is a bar" * 1000
-    DATA_CORRUPT = "a foo is a baz" * 1000
     proxy = ('localhost', 9008)
     bind_to = ('localhost', int(sys.argv[1]))