Skip to content

Commit 437e065

Browse files
authored
Merge pull request #27807 from rintaro/pythonlint-rdar56469555
[build-script] Fix python-lint issue
2 parents cfae1a3 + 4d31e7e commit 437e065

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

utils/build_swift/driver_arguments.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,6 @@ def create_argument_parser():
10461046
option('--install-swift', toggle_true('impl_install_swift'))
10471047
option('--skip-test-swift', toggle_true('impl_skip_test_swift'))
10481048

1049-
10501049
# -------------------------------------------------------------------------
10511050
return builder.build()
10521051

utils/build_swift/tests/test_driver_arguments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def parse_args_and_unknown_args(self, args, namespace=None):
421421

422422
def parse_args(self, args, namespace=None):
423423
namespace, unknown_args = self.parse_args_and_unknown_args(args,
424-
namespace)
424+
namespace)
425425

426426
if unknown_args:
427427
raise ParserError('unknown arguments: ' + str(unknown_args))

utils/swift_build_support/swift_build_support/migration.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ def parse_args(parser, argv):
3232
"""
3333
args, unknown_args = parser.parse_known_args(
3434
list(arg for arg in argv if arg != '--'))
35-
35+
3636
args, unknown_args = process_disambiguation_arguments(args, unknown_args)
37-
37+
3838
args.build_script_impl_args = unknown_args
3939
return args
4040

@@ -58,6 +58,7 @@ def process_disambiguation_arguments(args, unknown_args):
5858

5959
return args, unknown_args
6060

61+
6162
def check_impl_args(build_script_impl, argv):
6263
"""
6364
Check whether given argv are all known arguments for `build-script-impl`.

utils/swift_build_support/swift_build_support/products/skstresstester.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from .. import shell
1818
from .. import targets
1919

20+
2021
class SKStressTester(product.Product):
2122
@classmethod
2223
def product_source_name(cls):
@@ -63,8 +64,8 @@ def should_build(self, host_target):
6364
def build(self, host_target):
6465
if platform.system() != 'Darwin':
6566
raise RuntimeError("Unable to build {product} on a platform other "
66-
"than Darwin".format(product=self.package_name())
67-
)
67+
"than Darwin".format(
68+
product=self.package_name()))
6869

6970
self.run_build_script_helper('build')
7071

@@ -82,4 +83,3 @@ def install(self, host_target):
8283
self.run_build_script_helper('install', [
8384
'--prefix', install_prefix
8485
])
85-

utils/swift_build_support/swift_build_support/products/swiftevolve.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#
1111
# ----------------------------------------------------------------------------
1212

13-
from . import product
1413
from . import skstresstester
1514

1615

0 commit comments

Comments
 (0)