From: Terry Jan Reedy Date: Wed, 23 Sep 2015 07:45:13 +0000 (-0400) Subject: Idlelib.help: add 'b' prefix needed for bytes + bytes. X-Git-Tag: v3.5.1rc1~285^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6f5cdfefa10e89e57c26ddf358bacd044eb7cfc6;p=thirdparty%2FPython%2Fcpython.git Idlelib.help: add 'b' prefix needed for bytes + bytes. --- diff --git a/Lib/idlelib/help.py b/Lib/idlelib/help.py index a134bd89479d..731b334a6d22 100644 --- a/Lib/idlelib/help.py +++ b/Lib/idlelib/help.py @@ -234,7 +234,7 @@ def copy_strip(): with open(src, 'rb') as inn,\ open(dst, 'wb') as out: for line in inn: - out.write(line.rstrip() + '\n') + out.write(line.rstrip() + b'\n') print('idle.html copied to help.html') def show_idlehelp(parent):