[tor-commits] [bridgedb/develop] Remove unused bridgedb.Main.loadProxyList().

isis at torproject.org isis at torproject.org
Wed Feb 11 01:10:45 UTC 2015


commit 645058edcddca928abb0ac85c764a7bb99a43f06
Author: Isis Lovecruft <isis at torproject.org>
Date:   Tue Feb 10 07:55:28 2015 +0000

    Remove unused bridgedb.Main.loadProxyList().
---
 lib/bridgedb/Main.py |   16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/lib/bridgedb/Main.py b/lib/bridgedb/Main.py
index ff4aca8..a3c88d9 100644
--- a/lib/bridgedb/Main.py
+++ b/lib/bridgedb/Main.py
@@ -184,22 +184,6 @@ def load(state, splitter, clear=False):
     state.save()
     return
 
-def loadProxyList(cfg):
-    ipset = {}
-    for fname in cfg.PROXY_LIST_FILES:
-        f = open(fname, 'r')
-        for line in f:
-            line = line.strip()
-            if line.startswith("#"):
-                continue
-            elif isIPAddress(line):
-                ipset[line] = True
-            elif line:
-                logging.info("Skipping line %r in %s: not an IP.",
-                             line, fname)
-        f.close()
-    return ipset
-
 def _reloadFn(*args):
     """Placeholder callback function for :func:`_handleSIGHUP`."""
     return True





More information about the tor-commits mailing list