[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem/master] Fix `ControlMessage.from_str`



commit 9daac91a13507b39ceb7b05634aa3a8364ba891f
Author: Illia Volochii <illia.volochii@xxxxxxxxx>
Date:   Sun Apr 26 21:49:42 2020 +0300

    Fix `ControlMessage.from_str`
---
 stem/response/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stem/response/__init__.py b/stem/response/__init__.py
index af779324..52dc74e4 100644
--- a/stem/response/__init__.py
+++ b/stem/response/__init__.py
@@ -202,7 +202,7 @@ class ControlMessage(object):
 
       content = re.sub(b'([\r]?)\n', b'\r\n', content)
 
-    msg = stem.socket.recv_message(io.BytesIO(content), arrived_at = kwargs.pop('arrived_at', None))
+    msg = stem.socket.recv_message_from_bytes_io(io.BytesIO(content), arrived_at = kwargs.pop('arrived_at', None))
 
     if msg_type is not None:
       convert(msg_type, msg, **kwargs)



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits