commit 53af90a546976285586303134a6f4faf8fee6078 Author: Damian Johnson atagar@torproject.org Date: Sat Oct 28 18:26:46 2017 -0700
Fix missing validation argument from parse_file()
Oops, it's optional with other descriptor types but not router status entries. --- stem/control.py | 1 + stem/response/events.py | 2 ++ 2 files changed, 3 insertions(+)
diff --git a/stem/control.py b/stem/control.py index 416deb0a..a02c2387 100644 --- a/stem/control.py +++ b/stem/control.py @@ -1987,6 +1987,7 @@ class Controller(BaseController):
desc_iterator = stem.descriptor.router_status_entry._parse_file( io.BytesIO(desc_content), + False, entry_class = desc_class, )
diff --git a/stem/response/events.py b/stem/response/events.py index a0a20f5b..fcc92855 100644 --- a/stem/response/events.py +++ b/stem/response/events.py @@ -774,6 +774,7 @@ class NetworkStatusEvent(Event):
self.desc = list(stem.descriptor.router_status_entry._parse_file( io.BytesIO(str_tools._to_bytes(content)), + False, entry_class = stem.descriptor.router_status_entry.RouterStatusEntryV3, ))
@@ -817,6 +818,7 @@ class NewConsensusEvent(Event):
self.desc = list(stem.descriptor.router_status_entry._parse_file( io.BytesIO(str_tools._to_bytes(content)), + False, entry_class = stem.descriptor.router_status_entry.RouterStatusEntryV3, ))
tor-commits@lists.torproject.org