Skip to content

Commit 932525d

Browse files
committed
[gardening] Fix several python-lint warnings
1 parent fcd3457 commit 932525d

File tree

7 files changed

+4
-6
lines changed

7 files changed

+4
-6
lines changed

benchmark/scripts/test_Benchmark_Driver.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import os
1818
import time
1919
import unittest
20-
2120
from StringIO import StringIO
2221
from imp import load_source
2322

benchmark/scripts/test_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
import logging
2626
import sys
27-
2827
from StringIO import StringIO
2928
from contextlib import contextmanager
3029

utils/gyb_syntax_support/Node.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import print_function
22
import sys # noqa: I201
3+
34
from kinds import SYNTAX_BASE_KINDS, kind_to_type, lowercase_first_word
45

56

utils/gyb_syntax_support/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66
from DeclNodes import DECL_NODES # noqa: I201
77
from ExprNodes import EXPR_NODES # noqa: I201
88
from GenericNodes import GENERIC_NODES # noqa: I201
9+
910
from NodeSerializationCodes import SYNTAX_NODE_SERIALIZATION_CODES, \
1011
get_serialization_code, \
1112
verify_syntax_node_serialization_codes
1213

1314
from PatternNodes import PATTERN_NODES # noqa: I201
1415
from StmtNodes import STMT_NODES # noqa: I201
16+
1517
import Token
1618
from Trivia import TRIVIAS # noqa: I201
1719
from TypeNodes import TYPE_NODES # noqa: I201

utils/run-test

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ from swift_build_support.swift_build_support import (
2121
arguments,
2222
shell
2323
)
24-
2524
from swift_build_support.swift_build_support.SwiftBuildSupport import \
2625
SWIFT_SOURCE_ROOT
27-
2826
from swift_build_support.swift_build_support.targets import \
2927
StdlibDeploymentTarget
3028

utils/scale-test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import shutil
2525
import subprocess
2626
import sys
2727
import tempfile
28-
2928
from collections import namedtuple
3029
from operator import attrgetter
3130

utils/vim/swift-indent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def main(argc, argv):
8888
lines = stdout.decode(encoding).split('\n')
8989
sequence = difflib.SequenceMatcher(None, buf, lines)
9090
for op in reversed(sequence.get_opcodes()):
91-
if op[0] is not 'equal':
91+
if op[0] != 'equal':
9292
vim.current.buffer[op[1]:op[2]] = lines[op[3]:op[4]]
9393

9494

0 commit comments

Comments
 (0)