Skip to content

Commit b16cf40

Browse files
committed
👹 Feed the hobgoblins (delint).
1 parent 61bc807 commit b16cf40

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

distutils/command/build_scripts.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
33
Implements the Distutils 'build_scripts' command."""
44

5-
import os, re
5+
import os
6+
import re
67
from stat import ST_MODE
78
from distutils import sysconfig
89
from distutils.core import Command
@@ -14,6 +15,7 @@
1415
# check if Python is called on the first line with this expression
1516
first_line_re = re.compile(b'^#!.*python[0-9.]*([ \t].*)?$')
1617

18+
1719
class build_scripts(Command):
1820

1921
description = "\"build\" scripts (copy and fixup #! line)"
@@ -26,7 +28,6 @@ class build_scripts(Command):
2628

2729
boolean_options = ['force']
2830

29-
3031
def initialize_options(self):
3132
self.build_dir = None
3233
self.scripts = None
@@ -49,7 +50,6 @@ def run(self):
4950
return
5051
self.copy_scripts()
5152

52-
5353
def copy_scripts(self):
5454
r"""Copy each script listed in 'self.scripts'; if it's marked as a
5555
Python script in the Unix way (first line matches 'first_line_re',
@@ -101,8 +101,9 @@ def copy_scripts(self):
101101
else:
102102
executable = os.path.join(
103103
sysconfig.get_config_var("BINDIR"),
104-
"python%s%s" % (sysconfig.get_config_var("VERSION"),
105-
sysconfig.get_config_var("EXE")))
104+
"python%s%s" % (
105+
sysconfig.get_config_var("VERSION"),
106+
sysconfig.get_config_var("EXE")))
106107
executable = os.fsencode(executable)
107108
shebang = b"#!" + executable + post_interp + b"\n"
108109
# Python parser starts to read a script using UTF-8 until

0 commit comments

Comments
 (0)