[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Fully remove 'raw' argument
commit 333eb6c03bf8ff90bcedf08945d5c10d3113784d
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date: Sun Dec 31 14:00:31 2017 -0800
Fully remove 'raw' argument
To provide backward compatability we deprecate rather than outright remove
things, but in this case it's low enough level that it's probably safe to
simply drop it. Unfortunatley keeping raw would complicate other refactoring
I have in mind.
---
stem/socket.py | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/stem/socket.py b/stem/socket.py
index 7020cdf6..8ff316a7 100644
--- a/stem/socket.py
+++ b/stem/socket.py
@@ -283,13 +283,13 @@ class ControlSocket(BaseSocket):
def __init__(self):
super(ControlSocket, self).__init__()
- def send(self, message, raw = None):
+ def send(self, message):
"""
Formats and sends a message to the control socket. For more information see
the :func:`~stem.socket.send_message` function.
.. deprecated:: 1.7.0
- The **raw** argument is unhelpful and will be removed. Use
+ The **raw** argument was unhelpful and be removed. Use
:func:`stem.socket.send_message` if you need this level of control
instead.
@@ -305,10 +305,7 @@ class ControlSocket(BaseSocket):
if not self.is_alive():
raise stem.SocketClosed()
- if raw is None:
- send_message(self._socket_file, message)
- else:
- send_message(self._socket_file, message, raw)
+ send_message(self._socket_file, message)
except stem.SocketClosed:
# if send_message raises a SocketClosed then we should properly shut
# everything down
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits