From 2da784ca215cd158a22f6d4a84c98e888ce7337c Mon Sep 17 00:00:00 2001 From: Min RK Date: Wed, 26 Jan 2022 16:35:37 +0100 Subject: [PATCH] check-tmp needs to run on Python 3.5 --- tests/check-tmp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/check-tmp b/tests/check-tmp index 3c63489f..d7657283 100755 --- a/tests/check-tmp +++ b/tests/check-tmp @@ -50,11 +50,11 @@ def check_dir_size(path): path = os.path.expanduser(path) if not os.path.exists(path): - print(f"{path}: missing OK") + print("{path}: missing OK".format(**locals())) return True size_mb = du(path) - print(f"{path}: {size_mb:.1f} MB", end=" ") + print("{path}: {size_mb:.1f} MB".format(**locals()), end=" ") if size_mb <= THRESHOLD: print("OK") return True @@ -66,7 +66,7 @@ def check_dir_size(path): if os.path.isfile(subpath): file_sz = os.stat(subpath).st_size / MB if file_sz > 0.1: - print(f" {file_sz:.1f}M {subpath}") + print(" {file_sz:.1f}M {subpath}".format(**locals())) # get report on all subdirs that are at least 100k print( indent(