Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01c623b commit 6cf2619Copy full SHA for 6cf2619
1 file changed
Lib/distutils/command/build_scripts.py
@@ -15,7 +15,7 @@
15
from distutils import log
16
17
# check if Python is called on the first line with this expression
18
-first_line_re = re.compile(r'^#!.*python[0-9.]*(\s+.*)?$')
+first_line_re = re.compile('^#!.*python[0-9.]*([ \t].*)?$')
19
20
class build_scripts (Command):
21
@@ -96,7 +96,7 @@ def copy_scripts (self):
96
(os.path.normpath(sys.executable),
97
post_interp))
98
else:
99
- outf.write("#!%s%s" %
+ outf.write("#!%s%s\n" %
100
(os.path.join(
101
sysconfig.get_config_var("BINDIR"),
102
"python" + sysconfig.get_config_var("EXE")),
0 commit comments