Commits

Paul Moore  committed 9f6b14e

Fix str/bytes confusion in hashbang line calculation

  • Participants
  • Parent commits 830db0c

Comments (0)

Files changed (1)

File wheel/install.py

             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)