From 68b8defaf91d649c01ea476f8a15be4a60bfbf5f Mon Sep 17 00:00:00 2001 From: jchabloz Date: Sat, 30 Dec 2023 19:03:44 +0100 Subject: [PATCH] Function queue_message() moved to private _queue_message() --- python/verisocks/verisocks.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/python/verisocks/verisocks.py b/python/verisocks/verisocks.py index 7d65256..3c03b8a 100644 --- a/python/verisocks/verisocks.py +++ b/python/verisocks/verisocks.py @@ -206,7 +206,7 @@ def _read_content(self): raise ValueError("Value for 'content-type' not recognized") self._rx_state = VsRxState.RX_DONE - def queue_message(self, request): + def _queue_message(self, request): """Create message and add it to the TX queue buffer. Args: @@ -313,8 +313,7 @@ def write(self, all=True): self._write(self._tx_msg_len.pop(0)) self._rx_expected += 1 else: - logging.warning("TX buffer is empty. No message to transmit. \ -Use queue_message().") + logging.warning("TX buffer is empty. No message to transmit.") def send(self, **cmd): """Sends a message with a JSON content. @@ -335,7 +334,7 @@ def send(self, **cmd): else: timeout = None - self.queue_message({ + self._queue_message({ "type": "application/json", "encoding": "utf-8", "content": cmd