[stem/master] Unused constructor annotations arg

commit 7d96e78e90e455019f674eff2a611449107eb109 Author: Damian Johnson <atagar@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
participants (1)
-
atagar@torproject.org