commit 9e6fb6d9d99144832b78e5cf1b28fc4232d17c15 Author: Ravi Chandra Padmala neenaoffline@gmail.com Date: Tue Aug 7 13:25:43 2012 +0530
Fix incorrect docstring and reduce 1 LoC elsewhere --- stem/descriptor/networkstatus.py | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/stem/descriptor/networkstatus.py b/stem/descriptor/networkstatus.py index 988c71c..a9b23e2 100644 --- a/stem/descriptor/networkstatus.py +++ b/stem/descriptor/networkstatus.py @@ -62,15 +62,14 @@ def parse_file(document_file, validate = True): :param file document_file: file with network status document content :param bool validate: checks the validity of the document's contents if True, skips these checks otherwise
- :returns: iterator for :class:`stem.descriptor.networkstatus_descriptor.RouterDescriptor` instances in the file + :returns: iterator for :class:`stem.descriptor.networkstatus.RouterDescriptor` instances in the file
:raises: * ValueError if the contents is malformed and validate is True * IOError if the file can't be read """
- document = NetworkStatusDocument(document_file.read(), validate) - return document.router_descriptors + return NetworkStatusDocument(document_file.read(), validate).router_descriptors
def _strptime(string, validate = True, optional = False): try:
tor-commits@lists.torproject.org