aboutsummaryrefslogtreecommitdiff
path: root/tests/time-keygen.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2020-05-25 19:33:38 -0400
committerRob Austein <sra@hactrn.net>2020-05-25 19:33:38 -0400
commit1cd42f6d3332e1edf78b06bd7dcf51f5a1a7bb23 (patch)
tree1eca75f12e53763e223856d46bc1ab4224079086 /tests/time-keygen.py
parentaab1cf4d694b4d4fefa77f02b4c42d7683a2f43f (diff)
Untested conversion to support Python 3
Diffstat (limited to 'tests/time-keygen.py')
-rwxr-xr-xtests/time-keygen.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/time-keygen.py b/tests/time-keygen.py
index b7311ba..14a8119 100755
--- a/tests/time-keygen.py
+++ b/tests/time-keygen.py
@@ -22,7 +22,7 @@ hsm.login(HAL_USER_NORMAL, args.pin)
flags = HAL_KEY_FLAG_USAGE_DIGITALSIGNATURE | (HAL_KEY_FLAG_TOKEN if args.token else 0)
sum = timedelta()
-for n in xrange(1, args.iterations + 1):
+for n in range(1, args.iterations + 1):
t0 = datetime.now()
@@ -34,4 +34,4 @@ for n in xrange(1, args.iterations + 1):
sum += t1 - t0
- print "{:4d} this {} mean {}".format(n, t1 - t0, sum / n)
+ print("{:4d} this {} mean {}".format(n, t1 - t0, sum / n))