[or-cvs] r15148: try even harder to keep bridges distinct in the case where s (bridgedb/trunk/lib/bridgedb)

nickm at seul.org nickm at seul.org
Wed Jun 11 22:44:43 UTC 2008


Author: nickm
Date: 2008-06-11 18:44:43 -0400 (Wed, 11 Jun 2008)
New Revision: 15148

Modified:
   bridgedb/trunk/lib/bridgedb/Bridges.py
Log:
try even harder to keep bridges distinct in the case where some stable bridges are on port 443.

Modified: bridgedb/trunk/lib/bridgedb/Bridges.py
===================================================================
--- bridgedb/trunk/lib/bridgedb/Bridges.py	2008-06-11 22:42:16 UTC (rev 15147)
+++ bridgedb/trunk/lib/bridgedb/Bridges.py	2008-06-11 22:44:43 UTC (rev 15148)
@@ -313,8 +313,8 @@
                 count = len.subring
             forced.extend(subring._getBridgeKeysAt(pos, count))
 
-        keys = forced[:]
-        for k in self._getBridgeKeysAt(pos, N):
+        keys = [ ]
+        for k in forced + self._getBridgeKeysAt(pos, N):
             if k not in keys:
                 keys.append(k)
         keys = keys[:N]



More information about the tor-commits mailing list