Skip to content

Commit 43c5373

Browse files
committed
fix a problem with debug printing in the check-incremental script
1 parent 4167fa0 commit 43c5373

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

utils/check-incremental

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ from __future__ import print_function
2323
import os
2424
import subprocess
2525
import sys
26+
import time
2627

2728

2829
VERBOSE = False
@@ -37,11 +38,11 @@ def compile_and_stat(compile_args, output_file):
3738
subprocess.check_call(compile_args)
3839

3940
md5 = subprocess.check_output(["md5", "-q", output_file])
40-
mtime = os.path.getmtime(output_file)
41+
mtime = time.ctime(os.path.getmtime(output_file))
4142

4243
if VERBOSE:
43-
print(" time = {}".format(md5))
44-
print(" md5 = " + mtime)
44+
print(" time = " + str(mtime))
45+
print(" md5 = " + md5)
4546

4647
return (md5, mtime)
4748

0 commit comments

Comments
 (0)