Skip to content

Commit 3ecc1ce

Browse files
committed
[Bug #475009] Tighten the pattern for the first line, so we don't
adjust it when a versioned interpreter is supplied (#!.../python2 ...)
1 parent 35974fb commit 3ecc1ce

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
@@ -12,7 +12,7 @@
1212
from distutils.util import convert_path
1313

1414
# check if Python is called on the first line with this expression
15-
first_line_re = re.compile(r'^#!.*python(\s+.*)?')
15+
first_line_re = re.compile(r'^#!.*python(\s+.*)?$')
1616

1717
class build_scripts (Command):
1818

0 commit comments

Comments
 (0)