Skip to content

Commit 2a55b9d

Browse files
committed
Fix python lint errors.
1 parent 6c8fa93 commit 2a55b9d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

tools/swift-inspect/build_script_helper.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import argparse
66
import os
7-
import shutil
87
import subprocess
98

109

utils/line-directive

+1-1
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ def run():
700700
':(?P<line>[0-9]+):(?P<column>[0-9]+):(?P<tail>.*?)\n?$')
701701

702702
assertion_pattern = re.compile(
703-
'^(?P<head>.*( file | at |#[0-9]+: |[\[]))' +
703+
'^(?P<head>.*( file | at |#[0-9]+: |[\\[]))' +
704704
sources +
705705
'(?P<middle>, line |:)(?P<line>[0-9]+)(?P<tail>.*?)\n?$')
706706

utils/swift_build_support/swift_build_support/products/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
from .skstresstester import SKStressTester
2727
from .sourcekitlsp import SourceKitLSP
2828
from .swift import Swift
29-
from .swiftinspect import SwiftInspect
3029
from .swiftevolve import SwiftEvolve
30+
from .swiftinspect import SwiftInspect
3131
from .swiftpm import SwiftPM
3232
from .swiftsyntax import SwiftSyntax
3333
from .tensorflow import TensorFlowSwiftAPIs

utils/swift_build_support/swift_build_support/products/swiftinspect.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ def run_build_script_helper(host_target, product, args):
6161
# the assumption that each product is in its own build directory. This
6262
# product is not like that and has its package/tools instead in
6363
# ./$SOURCE_ROOT/swift/benchmark.
64-
package_path = os.path.join(product.source_dir, '..', 'swift', 'tools', 'swift-inspect')
64+
package_path = os.path.join(product.source_dir,
65+
'..', 'swift', 'tools', 'swift-inspect')
6566
package_path = os.path.abspath(package_path)
6667

6768
# We use a separate python helper to enable quicker iteration when working

0 commit comments

Comments
 (0)