[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Accepting additional args on extra-info line
commit d3f7c00fa6cf2573f30551589338e4d42d61465a
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date: Thu May 10 08:00:36 2012 -0700
Accepting additional args on extra-info line
Forgot that the spec says that extra arguments should be accepted and ignored.
---
stem/descriptor/extrainfo_descriptor.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/stem/descriptor/extrainfo_descriptor.py b/stem/descriptor/extrainfo_descriptor.py
index aa02bc9..b0d7864 100644
--- a/stem/descriptor/extrainfo_descriptor.py
+++ b/stem/descriptor/extrainfo_descriptor.py
@@ -263,7 +263,7 @@ class ExtraInfoDescriptor(stem.descriptor.Descriptor):
# "extra-info" Nickname Fingerprint
extra_info_comp = value.split()
- if len(extra_info_comp) != 2:
+ if len(extra_info_comp) < 2:
if not validate: continue
raise ValueError("Extra-info line must have two values: %s" % line)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits