[tor-commits] [bridgedb/master] Add a docstring to bridgedb.Bridges.BridgeRing.setName().

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


commit e41a2acf1ddf3aa84584bd65511803bd7f1385ac
Author: Isis Lovecruft <isis at torproject.org>
Date:   Fri Nov 15 13:24:46 2013 +0000

    Add a docstring to bridgedb.Bridges.BridgeRing.setName().
---
 lib/bridgedb/Bridges.py |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/bridgedb/Bridges.py b/lib/bridgedb/Bridges.py
index d77e632..a49da9f 100644
--- a/lib/bridgedb/Bridges.py
+++ b/lib/bridgedb/Bridges.py
@@ -730,7 +730,10 @@ class BridgeRing(BridgeHolder):
         self.setName("Ring")
 
     def setName(self, name):
-        """DOCDOC"""
+        """Tag a unique name to this hashring for identification.
+
+        :param string name: The name for this hashring.
+        """
         self.name = name
         for tp,val,_,subring in self.subrings:
             if tp == 'port':





More information about the tor-commits mailing list