From 2970aa61feddd11c9b4421cc8a5e31e8ad31ef10 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Wed, 14 Oct 2020 20:32:21 +0200 Subject: Fix send function after failing test Signed-off-by: Olivier Gayot --- solter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'solter.py') diff --git a/solter.py b/solter.py index 10e9bb6..262e34a 100755 --- a/solter.py +++ b/solter.py @@ -44,7 +44,7 @@ def get_commands_send_data(sockfd: int, data: str, **kwargs): if '"' in data or "\n" in data: raise ValueError("Double-quotes and newlines are not supported") - return [f'call (int)send({sockfd}, "{data}", {len(data)}, {MSG_NOSIGNAL})'] + return [f'call (int)send({sockfd}, "{data}", {len(data)}, {hex(MSG_NOSIGNAL)})'] def get_commands_enable_keepalive(**kwargs): -- cgit v1.2.3