[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] [torflow/master 25/92] Two minor bugfixes



Author: John M. Schanck <john@xxxxxxxxxxx>
Date: Sun, 11 Jul 2010 16:43:26 -0400
Subject: Two minor bugfixes
Commit: bd6f8aa7378e503055efe62aaffa7943911e6115

---
 NetworkScanners/ExitAuthority/soat.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/NetworkScanners/ExitAuthority/soat.py b/NetworkScanners/ExitAuthority/soat.py
index 9305cd2..d6cbce2 100755
--- a/NetworkScanners/ExitAuthority/soat.py
+++ b/NetworkScanners/ExitAuthority/soat.py
@@ -2029,7 +2029,7 @@ class SearchBasedHTTPTest(SearchBasedTest, BaseHTTPTest):
       self.targets.append(target)
       self.targets_by_type[type].append(target)
 
-  def remove_target(self, target):
+  def remove_target(self, target, reason="None"):
     if target in self.targets:
       self.targets.remove(target)
     # I'm not trusting the target's extension here. Should
@@ -2046,7 +2046,7 @@ class SearchBasedHTTPTest(SearchBasedTest, BaseHTTPTest):
       split = url.rsplit('.',1) # Try to get filetype
       if len(split) > 1 and split[-1] in self.targets_by_type:
         new.setdefault(split[-1],[]).append(url)
-    for k,v in new:
+    for k,v in new.items():
       self.targets_by_type[k].extend(v)
     return raw_urls
 
-- 
1.7.1