commit 00cefce1c51c5f03e9f41a9881147f78dd7f72f3 Author: Damian Johnson atagar@torproject.org Date: Sun Feb 2 16:14:20 2020 -0800
Drop get_authorities
Redundant with the DirectoryAuthority's from_cache() function. --- stem/descriptor/remote.py | 15 --------------- 1 file changed, 15 deletions(-)
diff --git a/stem/descriptor/remote.py b/stem/descriptor/remote.py index 2632a036..e059a504 100644 --- a/stem/descriptor/remote.py +++ b/stem/descriptor/remote.py @@ -1141,18 +1141,3 @@ def _guess_descriptor_type(resource): return 'bandwidth-file 1.0'
raise ValueError("Unable to determine the descriptor type for '%s'" % resource) - - -def get_authorities(): - """ - Provides cached Tor directory authority information. The directory - information hardcoded into Tor and occasionally changes, so the information - this provides might not necessarily match your version of tor. - - .. deprecated:: 1.7.0 - Use stem.directory.Authority.from_cache() instead. - - :returns: **dict** of **str** nicknames to :class:`~stem.directory.Authority` instances - """ - - return DirectoryAuthority.from_cache()