commit f6314efb7b69990d7696088ca315a0a46b0dddcd Author: Damian Johnson atagar@torproject.org Date: Mon Jan 11 08:52:55 2016 -0800
Consensus routers attribute is a dict
Oops, misdocumented class attribute. Most folks don't use this due to the default DocumentHandler being ENTRIES. --- stem/descriptor/networkstatus.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/stem/descriptor/networkstatus.py b/stem/descriptor/networkstatus.py index fe7fb28..436131d 100644 --- a/stem/descriptor/networkstatus.py +++ b/stem/descriptor/networkstatus.py @@ -693,8 +693,8 @@ class NetworkStatusDocumentV3(NetworkStatusDocument): """ Version 3 network status document. This could be either a vote or consensus.
- :var tuple routers: :class:`~stem.descriptor.router_status_entry.RouterStatusEntryV3` - contained in the document + :var dict routers: fingerprint to :class:`~stem.descriptor.router_status_entry.RouterStatusEntryV3` + mapping for relays contained in the document
:var int version: ***** document version :var str version_flavor: ***** flavor associated with the document (such as 'microdesc') @@ -1421,8 +1421,8 @@ class BridgeNetworkStatusDocument(NetworkStatusDocument): Network status document containing bridges. This is only available through the metrics site.
- :var tuple routers: :class:`~stem.descriptor.router_status_entry.RouterStatusEntryV2` - contained in the document + :var dict routers: fingerprint to :class:`~stem.descriptor.router_status_entry.RouterStatusEntryV3` + mapping for relays contained in the document :var datetime published: time when the document was published """
tor-commits@lists.torproject.org