[tor-commits] [bridgedb/master] Add docstring for bridgedb.Bridges.BridgeRing.__len__().

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


commit b85b8fa915e9f61009790b94a649280ac215e706
Author: Isis Lovecruft <isis at torproject.org>
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):





More information about the tor-commits mailing list