From 6f5cdfefa10e89e57c26ddf358bacd044eb7cfc6 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Wed, 23 Sep 2015 03:45:13 -0400 Subject: [PATCH] Idlelib.help: add 'b' prefix needed for bytes + bytes. --- Lib/idlelib/help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/idlelib/help.py b/Lib/idlelib/help.py index a134bd89479..731b334a6d2 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):