]> granicus.if.org Git - python/commitdiff
Idlelib.help: add 'b' prefix needed for bytes + bytes.
authorTerry Jan Reedy <tjreedy@udel.edu>
Wed, 23 Sep 2015 07:45:13 +0000 (03:45 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Wed, 23 Sep 2015 07:45:13 +0000 (03:45 -0400)
Lib/idlelib/help.py

index a134bd89479dd120fc6c0801edd7ac1f0bcd8404..731b334a6d2277e881cd3049602c43802abb1c22 100644 (file)
@@ -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):