Skip to content

Commit f05fa2d

Browse files
committed
format
1 parent 3474352 commit f05fa2d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/utils/lit/lit/TestRunner.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def executeBuiltinEcho(cmd, shenv):
397397
# Reopen stdout with specifying `newline` to avoid CRLF translation.
398398
# The versions of echo we are replacing on Windows all emit plain LF,
399399
# and the LLVM tests now depend on this.
400-
stdout = open(stdout.name, stdout.mode, newline='')
400+
stdout = open(stdout.name, stdout.mode, newline="")
401401
opened_files.append((None, None, stdout, None))
402402

403403
# Implement echo flags. We only support -e and -n, and not yet in
@@ -1441,9 +1441,7 @@ def parseIntegratedTestScriptCommands(source_path, keywords):
14411441
# Compute the updated line number by counting the intervening
14421442
# newlines.
14431443
match_position = match.start()
1444-
line_number += data.count(
1445-
b"\n", last_match_position, match_position
1446-
)
1444+
line_number += data.count(b"\n", last_match_position, match_position)
14471445
last_match_position = match_position
14481446

14491447
# Convert the keyword and line to UTF-8 strings and yield the

0 commit comments

Comments
 (0)