Commits

Paul Moore committed 9f6b14e

Fix str/bytes confusion in hashbang line calculation

Comments (0)

Files changed (1)

             if key == 'scripts':
                 hashbang = source.readline()
                 if hashbang.startswith(b'#!python'):
-                    hashbang = b'#!' + exename + os.linesep
+                    hashbang = b'#!' + exename + binary(os.linesep)
                 destination.write(hashbang)
             shutil.copyfileobj(source, destination)
             reldest = os.path.relpath(dest, root)