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

[tor-commits] [oonib/master] Remove unused duplicate of updateKnownHelpers



commit f9fd863c1707497a0fa8486b239aa97177c94502
Author: Taylor Hornby <havoc@xxxxxxxxx>
Date:   Thu Mar 27 11:17:01 2014 -0600

    Remove unused duplicate of updateKnownHelpers
---
 oonib/bouncer/handlers.py |   13 -------------
 1 file changed, 13 deletions(-)

diff --git a/oonib/bouncer/handlers.py b/oonib/bouncer/handlers.py
index 38ac1f5..47fee26 100644
--- a/oonib/bouncer/handlers.py
+++ b/oonib/bouncer/handlers.py
@@ -115,19 +115,6 @@ class BouncerQueryHandler(OONIBHandler):
     def initialize(self):
         self.bouncer = Bouncer()
 
-    def updateKnownHelpers(self):
-        with open(config.main.bouncer_file) as f:
-            bouncerFile = yaml.safe_load(f)
-            for collectorName, helpers in bouncerFile['collector'].items():
-                for helperName, helperAddress in helpers['test-helper'].items():
-                    if helperName not in self.knownHelpers.keys():
-                        self.knownHelpers[helperName] = []
-                  
-                    self.knownHelpers[helperName].append({
-                        'collector-name': collectorName,
-                        'helper-address': helperAddress
-                    })
-
     def post(self):
         try:
             query = json.loads(self.request.body)



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits