[tor-bugs] #25046 [Core Tor/Stem]: reveal_count incorrect in stem

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Jan 29 04:24:48 UTC 2018


#25046: reveal_count incorrect in stem
---------------------------+--------------------------
 Reporter:  tom            |          Owner:  atagar
     Type:  defect         |         Status:  reopened
 Priority:  Medium         |      Milestone:
Component:  Core Tor/Stem  |        Version:
 Severity:  Normal         |     Resolution:
 Keywords:                 |  Actual Points:
Parent ID:                 |         Points:
 Reviewer:                 |        Sponsor:
---------------------------+--------------------------
Changes (by teor):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Something weird happened with the pydoc recently, and I'm now seeing:
 {{{
 HEADER_PARSER_FOR_LINE = {'valid-after': <function _parse at
 0x7fba0426e488>, 'server-versions': <function _parse at 0x7fba0426e668>,
 'shared-rand-previous-value': <function _parse_shared_rand_previous_value
 at 0x7fba0426e398>, 'network-status-version': <function
 _parse_header_network_status_version_line at 0x7fba0426fc08>, 'consensus-
 method': <function _parse_header_consensus_method_line at 0x7fba0426fed8>,
 'client-versions': <function _parse at 0x7fba0426e5f0>, 'known-flags':
 <function _parse at 0x7fba0426e758>, 'voting-delay': <function
 _parse_header_voting_delay_line at 0x7fba0426ff50>, 'shared-rand-current-
 value': <function _parse_shared_rand_current_value at 0x7fba0426e410>,
 'package': <function _parse_package_line at 0x7fba0426e2a8>, 'params':
 <function _parse_header_parameters_line at 0x7fba0426e140>, 'recommended-
 relay-protocols': <function _parse at 0x7fba0426e9b0>, 'fresh-until':
 <function _parse at 0x7fba0426e500>, 'valid-until': <function _parse at
 0x7fba0426e578>, 'published': <function _parse at 0x7fba0426fa28>,
 'required-client-protocols': <function _parse at 0x7fba0426ea28>, 'vote-
 status': <function _parse_header_vote_status_line at 0x7fba0426fde8>,
 'required-relay-protocols': <function _parse at 0x7fba0426eaa0>, 'flag-
 thresholds': <function _parse_header_flag_thresholds_line at
 0x7fba0426e0c8>, 'consensus-methods': <function
 _parse_header_consensus_methods_line at 0x7fba0426fe60>, 'recommended-
 client-protocols': <function _parse at 0x7fba0426e938>}

 FOOTER_PARSER_FOR_LINE = {'directory-signature': <function
 _parse_footer_directory_signature_line at 0x7fba0426e230>, 'bandwidth-
 weights': <function _parse at 0x7fba0426e848>, 'directory-footer':
 <function _parse_directory_footer_line at 0x7fba0426e1b8>}

 classmethod content(attr=None, exclude=(), sign=False, authorities=None,
 routers=None)[source]

 classmethod create(attr=None, exclude=(), validate=True, sign=False,
 authorities=None, routers=None)
 }}}
 On
 https://stem.torproject.org/api/descriptor/networkstatus.html#stem.descriptor.networkstatus.NetworkStatusDocumentV3.content

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/25046#comment:10>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list