From 875cc0f8574b1bad6ae03f2d50430c0f0be8a319 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Sat, 8 Feb 2020 21:10:58 +0100 Subject: [PATCH] perf-glance: make compatible with python==python3 If python is python3, then print is a function. Fix the code to make it a function since python2 doesn't really care (in this particular case where we just have a single argument). Signed-off-by: Johannes Berg Tested-by: Rob Browning --- t/perf-glance | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/t/perf-glance b/t/perf-glance index 5877c62..55ae966 100755 --- a/t/perf-glance +++ b/t/perf-glance @@ -24,7 +24,7 @@ bup() get-time() { - python -c 'import time; print time.time()' + python -c 'import time; print(time.time())' } rm -rf "$BUP_DIR" @@ -53,11 +53,11 @@ all_finish="$(get-time)" set +x cat <