[tor-commits] [bridgedb/master] PEP8 / make variable names clearer in FixedBridgeSplitter.__len__().

isis at torproject.org isis at torproject.org
Sun Jan 12 06:06:31 UTC 2014


commit 8363316f8b6ffbc9057c7c0fa3798bca04e3d8d7
Author: Isis Lovecruft <isis at torproject.org>
Date:   Fri Nov 15 13:28:15 2013 +0000

    PEP8 / make variable names clearer in FixedBridgeSplitter.__len__().
---
 lib/bridgedb/Bridges.py |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/bridgedb/Bridges.py b/lib/bridgedb/Bridges.py
index 1371ce8..819cdd2 100644
--- a/lib/bridgedb/Bridges.py
+++ b/lib/bridgedb/Bridges.py
@@ -862,10 +862,10 @@ class FixedBridgeSplitter(BridgeHolder):
 
     def __len__(self):
         """Returns the total number of bridges in all ``rings``."""
-        n = 0
-        for r in self.rings:
-            n += len(r)
-        return n
+        total = 0
+        for ring in self.rings:
+            total += len(ring)
+        return total
 
     def dumpAssignments(self, f, description=""):
         for i,r in zip(xrange(len(self.rings)), self.rings):





More information about the tor-commits mailing list