Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6f5cdfe

Browse files
committed
Idlelib.help: add 'b' prefix needed for bytes + bytes.
1 parent aa0da86 commit 6f5cdfe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/idlelib/help.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def copy_strip():
234234
with open(src, 'rb') as inn,\
235235
open(dst, 'wb') as out:
236236
for line in inn:
237-
out.write(line.rstrip() + '\n')
237+
out.write(line.rstrip() + b'\n')
238238
print('idle.html copied to help.html')
239239

240240
def show_idlehelp(parent):

0 commit comments

Comments
 (0)