[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/master] Add docstring for bridgedb.Bridges.BridgeRing.__len__().
commit b85b8fa915e9f61009790b94a649280ac215e706
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Sun Jan 12 01:11:37 2014 +0000
Add docstring for bridgedb.Bridges.BridgeRing.__len__().
---
lib/bridgedb/Bridges.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/bridgedb/Bridges.py b/lib/bridgedb/Bridges.py
index da231a4..f8f7906 100644
--- a/lib/bridgedb/Bridges.py
+++ b/lib/bridgedb/Bridges.py
@@ -740,6 +740,7 @@ class BridgeRing(BridgeHolder):
subring.setName("%s (%s subring)" % (name, val))
def __len__(self):
+ """Get the number of unique bridges this hashring contains."""
return len(self.bridges)
def clear(self):
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits