summaryrefslogtreecommitdiff
path: root/tools/hash_benchmark.py
diff options
context:
space:
mode:
authorj4qfrost <j4qfrost@gmail.com>2020-10-01 23:59:53 +0000
committerGitHub <noreply@github.com>2020-10-02 09:59:53 +1000
commitd96e7226dd8909351c230b6f9820f952dddb0ece (patch)
tree36c2972484b00427dc3e306ce7089dc78090b230 /tools/hash_benchmark.py
parent4c779b5e8ca427faf24c26443a8054004827d450 (diff)
refactor: use parentheses in print statements in python (#7779)
Diffstat (limited to 'tools/hash_benchmark.py')
-rw-r--r--tools/hash_benchmark.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/hash_benchmark.py b/tools/hash_benchmark.py
index 8dd3ccf0b..f224474ed 100644
--- a/tools/hash_benchmark.py
+++ b/tools/hash_benchmark.py
@@ -34,12 +34,12 @@ def run_benchmark(deno_exe, method, input_file):
(out, _) = p.communicate()
elapsed = out.split(':')[1].strip()
- print "[{}] {}".format(alg, elapsed)
+ print("[{}] {}".format(alg, elapsed))
def main():
if len(sys.argv) < 4:
- print "Usage ./tools/hash_benchmark.py path/to/deno method input"
+ print("Usage ./tools/hash_benchmark.py path/to/deno method input")
sys.exit(1)
run_benchmark(sys.argv[1], sys.argv[2], sys.argv[3])