Skip to content

Commit 340b7b7

Browse files
authored
Merge pull request #69972 from atrick/fix-lint
Fix lit test Python/python_lint.swift
2 parents f7c5831 + 97b7816 commit 340b7b7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

utils/cmpcodesize/cmpcodesize/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import sys
1818

1919
from cmpcodesize.compare import \
20-
compare_function_sizes, compare_sizes_of_file, list_function_sizes,\
20+
compare_function_sizes, compare_sizes_of_file, list_function_sizes, \
2121
read_sizes
2222

2323

utils/round-trip-syntax-test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ class RoundTripTask(object):
1717
skip_bad_syntax):
1818
assert action == '-round-trip-parse' or action == '-round-trip-lex'
1919
if sys.version_info[0] < 3:
20-
assert type(input_filename) == str
21-
assert type(swift_syntax_test) == str
20+
assert isinstance(input_filename, str)
21+
assert isinstance(swift_syntax_test, str)
2222

2323
assert os.path.isfile(input_filename), \
2424
"Input file {} is not accessible!".format(input_filename)

0 commit comments

Comments
 (0)