commit b0738a9c72eb1d628a028a9298235f129a57ecab Author: Damian Johnson atagar@torproject.org Date: Wed Dec 4 12:58:35 2019 -0800
Drop AuthorizedClient string method
Oops. I added a string method on the assumption that I'd use it when creating descriptors but didn't. It's unused so simply dropping it so we have the option of adding a different string method later. --- stem/descriptor/hidden_service.py | 3 --- 1 file changed, 3 deletions(-)
diff --git a/stem/descriptor/hidden_service.py b/stem/descriptor/hidden_service.py index 249822f1..01f8b96f 100644 --- a/stem/descriptor/hidden_service.py +++ b/stem/descriptor/hidden_service.py @@ -428,9 +428,6 @@ class AuthorizedClient(object): self.iv = stem.util.str_tools._to_unicode(iv if iv else base64.b64encode(os.urandom(16)).rstrip(b'=')) self.cookie = stem.util.str_tools._to_unicode(cookie if cookie else base64.b64encode(os.urandom(16)).rstrip(b'='))
- def __str__(self): - return '%s %s %s' % (self.id, self.iv, self.cookie) - def __hash__(self): return stem.util._hash_attr(self, 'id', 'iv', 'cookie', cache = True)
tor-commits@lists.torproject.org