From 3d22ddc7e67a06d0bdf2994b1ef018bc46e92f34 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Mon, 4 Dec 2023 12:23:56 +0100 Subject: Migrate Python scripts to Python 3 --- tools/average | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/average') diff --git a/tools/average b/tools/average index 0e95c1c5..4c1e4b43 100755 --- a/tools/average +++ b/tools/average @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 import getopt import time @@ -18,9 +18,9 @@ length = 0.0 i = 0 while i < count: begin = time.time() - cmd = '"' + string.join(args, '" "') + '"'; + cmd = '"' + '" "'.join(args) + '"'; os.system(cmd) length += time.time() - begin i += 1 -print >> sys.stderr, length / count +print(length / count, file=sys.stderr) -- cgit v1.2.3