File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments