Skip to content

Commit d492b1a

Browse files
committed
Fix the python lint issue with swift-darwin-postprocess.py
1 parent 38faa8c commit d492b1a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

utils/swift-darwin-postprocess.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111

1212
utils = os.path.dirname(os.path.realpath(__file__))
1313

14+
1415
def main(arguments):
1516
parser = argparse.ArgumentParser(
16-
description='Postprocess binaries to prepare for their execution on Darwin platforms')
17+
description='Postprocess binaries to prepare for \
18+
their execution on Darwin platforms')
1719
parser.add_argument('bins', nargs='+', help='one or more binary files')
1820

1921
args = parser.parse_args(arguments)
@@ -22,6 +24,7 @@ def main(arguments):
2224
unrpathize(bin)
2325
codesign(bin)
2426

27+
2528
# This function rewrites binaries that use these `@rpath`-based load
2629
# commands to use direct /usr/lib/swift paths instead, to work around
2730
# an issue where the DYLD_LIBRARY_PATH override doesn't reliably work
@@ -76,9 +79,11 @@ def unrpathize(filename):
7679

7780
subprocess.check_call(command)
7881

82+
7983
def codesign(filename):
8084
# "-" is the signing identity for ad-hoc signing.
8185
command = ["/usr/bin/codesign", "--force", "--sign", "-", filename]
8286
subprocess.check_call(command)
8387

88+
8489
sys.exit(main(sys.argv[1:]))

0 commit comments

Comments
 (0)