[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Make `Controller.get_protocolinfo` asynchronous
commit 8fb626e7c3db5389fa209a095b02034df13833ae
Author: Illia Volochii <illia.volochii@xxxxxxxxx>
Date: Wed Apr 15 22:07:27 2020 +0300
Make `Controller.get_protocolinfo` asynchronous
---
stem/control.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/stem/control.py b/stem/control.py
index d6034fff..2b99fef5 100644
--- a/stem/control.py
+++ b/stem/control.py
@@ -1486,7 +1486,7 @@ class Controller(BaseController):
)
@with_default()
- def get_protocolinfo(self, default: Any = UNDEFINED) -> stem.response.protocolinfo.ProtocolInfoResponse:
+ async def get_protocolinfo(self, default: Any = UNDEFINED) -> stem.response.protocolinfo.ProtocolInfoResponse:
"""
get_protocolinfo(default = UNDEFINED)
@@ -1506,7 +1506,7 @@ class Controller(BaseController):
"""
import stem.connection
- return stem.connection.get_protocolinfo(self)
+ return await stem.connection.get_protocolinfo(self)
@with_default()
def get_user(self, default: Any = UNDEFINED) -> str:
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits