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

[tor-commits] [bridgedb/master] Rename `index` and `ring` in FixedBridgeSplitter.dumpAssignments().



commit 6e88838c4ce399ba9ac7ac481b44bc478cf73452
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Fri Nov 15 13:31:28 2013 +0000

    Rename `index` and `ring` in FixedBridgeSplitter.dumpAssignments().
    
    Because `i` and `r` weren't immediately clear to me what they were referring
    to.
---
 lib/bridgedb/Bridges.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/bridgedb/Bridges.py b/lib/bridgedb/Bridges.py
index 4cafda0..6ffd116 100644
--- a/lib/bridgedb/Bridges.py
+++ b/lib/bridgedb/Bridges.py
@@ -876,8 +876,8 @@ class FixedBridgeSplitter(BridgeHolder):
             description is ``"IPv6 obfs2 bridges"`` the line would read:
             ``"IPv6 obfs2 bridges ring=3"``.
         """
-        for i,r in zip(xrange(len(self.rings)), self.rings):
-            r.dumpAssignments(filename, "%s ring=%s" % (description, i))
+        for index, ring in zip(xrange(len(self.rings)), self.rings):
+            ring.dumpAssignments(filename, "%s ring=%s" % (description, index))
 
 class UnallocatedHolder(BridgeHolder):
     """A pseudo-bridgeholder that ignores its bridges and leaves them



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