[tor-commits] [bridgedb/develop] Document descriptor parameter in Bridge.updateFromNetworkStatus().

isis at torproject.org isis at torproject.org
Thu Apr 30 07:00:41 UTC 2015


commit 7bd8f90d91226fe046fea15fe128614d669cb505
Author: Isis Lovecruft <isis at torproject.org>
Date:   Thu Apr 30 05:54:51 2015 +0000

    Document descriptor parameter in Bridge.updateFromNetworkStatus().
---
 lib/bridgedb/bridges.py |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/bridgedb/bridges.py b/lib/bridgedb/bridges.py
index 5c0afd8..93b9fe9 100644
--- a/lib/bridgedb/bridges.py
+++ b/lib/bridgedb/bridges.py
@@ -1381,10 +1381,11 @@ class Bridge(BridgeBackwardsCompatibility):
 
     def updateFromNetworkStatus(self, descriptor):
         """Update this bridge's attributes from a parsed networkstatus
-        descriptor.
+        document.
 
-        :type ns: :api:`stem.descriptors.router_status_entry.RouterStatusEntry`
-        :param ns:
+        :type descriptor:
+            :api:`stem.descriptors.router_status_entry.RouterStatusEntry`
+        :param descriptor: The networkstatus document for this bridge.
         """
         self.descriptors['networkstatus'] = descriptor
 





More information about the tor-commits mailing list