Skip to content

Commit 97b7816

Browse files
committed
Fix lit test Python/python_lint.swift
./utils/cmpcodesize/cmpcodesize/main.py:20:71: E231 missing whitespace after ',' ./utils/round-trip-syntax-test:20:20: E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()` ./utils/round-trip-syntax-test:21:16: E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()` I can't find any uses of round-trip-syntax-test, so I don't know if this fix is correct.
1 parent 98e65d0 commit 97b7816

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)