[tor-commits] [stem/master] Unused constructor annotations arg
atagar at torproject.org
atagar at torproject.org
Mon May 14 00:14:27 UTC 2012
commit 7d96e78e90e455019f674eff2a611449107eb109
Author: Damian Johnson <atagar at torproject.org>
Date: Sun May 13 17:02:28 2012 -0700
Unused constructor annotations arg
Cached extrainfo descriptors don't have annotations, so excluding it from the
constructor. Functionally it was already unused, just forgot to remove it from
the args. Caught by pylint.
---
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 f0f3ee2..1c00d34 100644
--- a/stem/descriptor/extrainfo_descriptor.py
+++ b/stem/descriptor/extrainfo_descriptor.py
@@ -262,7 +262,7 @@ class ExtraInfoDescriptor(stem.descriptor.Descriptor):
default value, others are left as None if undefined
"""
- def __init__(self, raw_contents, validate = True, annotations = None):
+ def __init__(self, raw_contents, validate = True):
"""
Extra-info descriptor constructor, created from a relay's extra-info
content (as provided by "GETINFO extra-info/digest/*", cached contents, and
More information about the tor-commits
mailing list