summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2017-11-02 06:30:07 -0700
committerJon Dufresne <jon.dufresne@gmail.com>2018-11-03 03:21:49 -0700
commitcd5dee3c3638f2341cb97322227b78ea39db1a65 (patch)
tree408352b5054767d27fdc2f7cc0065a5599529ab6
parent882f74a7b257e4eeee4afba2c1ddeb0173cb3cdd (diff)
downloadredis-py-cd5dee3c3638f2341cb97322227b78ea39db1a65.tar.gz
Remove explicit position numbers in format strings placeholders
All Python versions can handled ordered placeholders.
-rw-r--r--benchmarks/basic_operations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/basic_operations.py b/benchmarks/basic_operations.py
index c50a610..34dcd97 100644
--- a/benchmarks/basic_operations.py
+++ b/benchmarks/basic_operations.py
@@ -54,7 +54,7 @@ def timer(func):
count = kwargs['num']
else:
count = args[1]
- print('{0} - {1} Requests'.format(func.__name__, count))
+ print('{} - {} Requests'.format(func.__name__, count))
print('Duration = {}'.format(duration))
print('Rate = {}'.format(count/duration))
print('')