summaryrefslogtreecommitdiff
path: root/tools/average
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-12-05 06:47:34 +0000
committerGitHub <noreply@github.com>2023-12-05 06:47:34 +0000
commit14db8c8f10377607c85a7fe449af8001a64f088e (patch)
tree83d4e03e3790bb3c1e8ff94d78f83494c780ea71 /tools/average
parent88e6591b09c84ea8ecd5a576e6c9c5dbe565819a (diff)
parent2a452853224e3a9a8a516c5e5b105b2738b6912f (diff)
downloadfork-ledger-14db8c8f10377607c85a7fe449af8001a64f088e.tar.gz
fork-ledger-14db8c8f10377607c85a7fe449af8001a64f088e.tar.bz2
fork-ledger-14db8c8f10377607c85a7fe449af8001a64f088e.zip
Merge pull request #2308 from afh/migrate-py-scripts
Migrate python scripts
Diffstat (limited to 'tools/average')
-rwxr-xr-xtools/average6
1 files changed, 3 insertions, 3 deletions
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)