[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/master] Add a docstring to bridgedb.Bridges.FixedBridgeSplitter.__len__().
commit 595c57b60d55c674fb78e9d339e7ef2df1946b9f
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Fri Nov 15 13:27:04 2013 +0000
Add a docstring to bridgedb.Bridges.FixedBridgeSplitter.__len__().
---
lib/bridgedb/Bridges.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/bridgedb/Bridges.py b/lib/bridgedb/Bridges.py
index a0d853e..1371ce8 100644
--- a/lib/bridgedb/Bridges.py
+++ b/lib/bridgedb/Bridges.py
@@ -861,6 +861,7 @@ class FixedBridgeSplitter(BridgeHolder):
r.clear()
def __len__(self):
+ """Returns the total number of bridges in all ``rings``."""
n = 0
for r in self.rings:
n += len(r)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits