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

Skip to content

Commit 6cf2619

Browse files
committed
Do not add extra "\n" after bang line.
1 parent 01c623b commit 6cf2619

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/distutils/command/build_scripts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from distutils import log
1616

1717
# check if Python is called on the first line with this expression
18-
first_line_re = re.compile(r'^#!.*python[0-9.]*(\s+.*)?$')
18+
first_line_re = re.compile('^#!.*python[0-9.]*([ \t].*)?$')
1919

2020
class build_scripts (Command):
2121

@@ -96,7 +96,7 @@ def copy_scripts (self):
9696
(os.path.normpath(sys.executable),
9797
post_interp))
9898
else:
99-
outf.write("#!%s%s" %
99+
outf.write("#!%s%s\n" %
100100
(os.path.join(
101101
sysconfig.get_config_var("BINDIR"),
102102
"python" + sysconfig.get_config_var("EXE")),

0 commit comments

Comments
 (0)