[tor-commits] [stem/master] Descriptor pydoc mistake
atagar at torproject.org
atagar at torproject.org
Tue Jul 24 15:46:56 UTC 2012
commit 051ed27b99a5b8796777b86360a41bec52527b12
Author: Damian Johnson <atagar at torproject.org>
Date: Tue Jul 24 08:42:56 2012 -0700
Descriptor pydoc mistake
The parse_file() helper no longer runs over bridge descriptors, just relays.
The reason for this is that only relay descriptors exist in the
cached-descriptors file so there's little need for this to include hacks to
differentiate between the two.
---
stem/descriptor/server_descriptor.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/stem/descriptor/server_descriptor.py b/stem/descriptor/server_descriptor.py
index f54d5b1..759d6a5 100644
--- a/stem/descriptor/server_descriptor.py
+++ b/stem/descriptor/server_descriptor.py
@@ -70,8 +70,8 @@ SINGLE_FIELDS = (
def parse_file(descriptor_file, validate = True):
"""
- Iterates over the server descriptors in a file. This can read either relay or
- bridge server descriptors.
+ Iterates over the server descriptors in a file. This can only read relay or
+ descriptors.
:param file descriptor_file: file with descriptor content
:param bool validate: checks the validity of the descriptor's content if True, skips these checks otherwise
More information about the tor-commits
mailing list