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

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



commit 8363316f8b6ffbc9057c7c0fa3798bca04e3d8d7
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
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):



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