Skip to content

Commit 2da784c

Browse files
committed
check-tmp needs to run on Python 3.5
1 parent 38f5ace commit 2da784c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/check-tmp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ def check_dir_size(path):
5050
path = os.path.expanduser(path)
5151

5252
if not os.path.exists(path):
53-
print(f"{path}: missing OK")
53+
print("{path}: missing OK".format(**locals()))
5454
return True
5555

5656
size_mb = du(path)
57-
print(f"{path}: {size_mb:.1f} MB", end=" ")
57+
print("{path}: {size_mb:.1f} MB".format(**locals()), end=" ")
5858
if size_mb <= THRESHOLD:
5959
print("OK")
6060
return True
@@ -66,7 +66,7 @@ def check_dir_size(path):
6666
if os.path.isfile(subpath):
6767
file_sz = os.stat(subpath).st_size / MB
6868
if file_sz > 0.1:
69-
print(f" {file_sz:.1f}M {subpath}")
69+
print(" {file_sz:.1f}M {subpath}".format(**locals()))
7070
# get report on all subdirs that are at least 100k
7171
print(
7272
indent(

0 commit comments

Comments
 (0)