Skip to content

Commit d35ad60

Browse files
authored
check-incremental: explicitly use python3 (#41047)
Addresses rdar://88092462
1 parent d265ec9 commit d35ad60

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

utils/check-incremental

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# check-incremental - Check if incremental compilation works -*- python -*-
33
#
44
# This source file is part of the Swift.org open source project
@@ -18,8 +18,6 @@ The main purpose of the check is to ensure that the compiler is
1818
deterministic.
1919
"""
2020

21-
from __future__ import print_function
22-
2321
import os
2422
import subprocess
2523
import sys
@@ -37,7 +35,7 @@ def compile_and_stat(compile_args, output_file):
3735
"""
3836
subprocess.check_call(compile_args)
3937

40-
md5 = subprocess.check_output(["md5", "-q", output_file])
38+
md5 = subprocess.check_output(["md5", "-q", output_file], text=True)
4139
mtime = time.ctime(os.path.getmtime(output_file))
4240

4341
if VERBOSE:

0 commit comments

Comments
 (0)