src/eric7/EricNetwork/EricJsonClient.py

branch
eric7
changeset 10522
c04e878aa308
parent 10439
21c28b0f9e41
child 10524
ed4fd87c4d4c
--- a/src/eric7/EricNetwork/EricJsonClient.py	Tue Jan 23 11:32:20 2024 +0100
+++ b/src/eric7/EricNetwork/EricJsonClient.py	Tue Jan 23 12:21:15 2024 +0100
@@ -57,7 +57,7 @@
 
     def __receiveJson(self):
         """
-        Private method to receive a JSON encode command and data from the
+        Private method to receive a JSON encoded command and data from the
         server.
 
         @return tuple containing the received command and a dictionary
@@ -72,7 +72,7 @@
             return None, None
 
         length = int(length)
-        data = b""
+        data = bytearray()
         while len(data) < length:
             newData = self.__connection.recv(length - len(data))
             if not newData:

eric ide

mercurial