Skip to content

Commit b0c5642

Browse files
committed
Minor fix to ensure Python 3 support in the debugger
The default value for length in to_bytes was added in Python version 3.11. This small fix ensures the compatibility with older Python3 versions.
1 parent bd0d391 commit b0c5642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jerry-debugger/jerry_client_websocket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def send_message(self, byte_order, packed_data):
9090
""" Send message. """
9191
message = struct.pack(byte_order + "BBI",
9292
WEBSOCKET_BINARY_FRAME | WEBSOCKET_FIN_BIT,
93-
WEBSOCKET_FIN_BIT + struct.unpack(byte_order + "B", packed_data[0].to_bytes())[0],
93+
WEBSOCKET_FIN_BIT + struct.unpack(byte_order + "B", packed_data[0:1])[0],
9494
0) + packed_data[1:]
9595

9696
self.__send_data(message)

0 commit comments

Comments
 (0)