commit 49e4accb54d94114a246bab5d9c2ff2e56f02c30 Author: Damian Johnson atagar@torproject.org Date: Thu Jan 11 09:17:35 2018 -0800
Fix fallback equality check
Oops, when adding new attributes we need to ensure they're accounted for in our hash. --- stem/descriptor/remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stem/descriptor/remote.py b/stem/descriptor/remote.py index b318f4e3..0a372dce 100644 --- a/stem/descriptor/remote.py +++ b/stem/descriptor/remote.py @@ -1177,7 +1177,7 @@ class FallbackDirectory(Directory): return section_lines
def __hash__(self): - return _hash_attr(self, 'orport_v6', parent = Directory) + return _hash_attr(self, 'address', 'or_port', 'dir_port', 'fingerprint', 'nickname', 'has_extrainfo', 'orport_v6', parent = Directory)
def __eq__(self, other): return hash(self) == hash(other) if isinstance(other, FallbackDirectory) else False