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

Skip to content

Commit 90294d0

Browse files
committed
Joe VanAndel wrote:
> > When using 'distutils' (shipped with Python 2.1) I've found that my > Python scripts installed with a first line of: > > #!/usr/bin/python2.1None > > This is caused by distutils trying to patch the first line of the python > script to use the current interpreter.
1 parent 77d8a4f commit 90294d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/distutils/command/build_scripts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def copy_scripts (self):
8080
match = first_line_re.match(first_line)
8181
if match:
8282
adjust = 1
83-
post_interp = match.group(1)
83+
post_interp = match.group(1) or ''
8484

8585
if adjust:
8686
self.announce("copying and adjusting %s -> %s" %

0 commit comments

Comments
 (0)