Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions pip/_vendor/distlib/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ def _get_alternate_executable(self, executable, options):
return executable

def _get_shebang(self, encoding, post_interp=b'', options=None):
enquote = True
if self.executable:
executable = self.executable
enquote = False # assume this will be taken care of
Expand All @@ -109,10 +108,6 @@ def _get_shebang(self, encoding, post_interp=b'', options=None):
if options:
executable = self._get_alternate_executable(executable, options)

# If the user didn't specify an executable, it may be necessary to
# cater for executable paths with spaces (not uncommon on Windows)
if enquote and ' ' in executable:
executable = '"%s"' % executable
executable = fsencode(executable)
shebang = b'#!' + executable + post_interp + b'\n'
# Python parser starts to read a script using UTF-8 until
Expand Down