--- a/eric6/DebugClients/Python/AsyncFile.py Sun Jul 05 11:11:24 2020 +0200 +++ b/eric6/DebugClients/Python/AsyncFile.py Sun Oct 18 12:35:30 2020 +0200 @@ -174,7 +174,7 @@ """ self.__checkMode('r') - buf = input() + buf = input() # secok if size >= 0: buf = buf[:size] return buf @@ -272,7 +272,7 @@ """ self.__checkMode('r') - line = input() + '\n' + line = input() + '\n' # secok if sizehint >= 0: line = line[:sizehint] return line @@ -333,10 +333,14 @@ Public method to write a string to the file. @param s text to be written - @type str + @type str, bytes or bytearray """ self.__checkMode('w') + if isinstance(s, (bytes, bytearray)): + # convert to string to send it + s = repr(s) + cmd = prepareJsonCommand("ClientOutput", { "text": s, "debuggerId": "",