aboutsummaryrefslogtreecommitdiff
path: root/src/ext/ed25519/ref10/base.py
diff options
context:
space:
mode:
authorcclauss <cclauss@me.com>2020-01-28 01:38:54 +0100
committercclauss <cclauss@me.com>2020-01-28 01:38:54 +0100
commit3208a74f906c116e93074c6ed0559df1cbfe58d1 (patch)
treec43d03841d5c29d4a8fc29793ef71eebc065d989 /src/ext/ed25519/ref10/base.py
parentaba31e2187808257b250bf469895330f273d7746 (diff)
downloadtor-3208a74f906c116e93074c6ed0559df1cbfe58d1.tar.gz
tor-3208a74f906c116e93074c6ed0559df1cbfe58d1.zip
Use print() function in both Python 2 and Python 3
Diffstat (limited to 'src/ext/ed25519/ref10/base.py')
-rw-r--r--src/ext/ed25519/ref10/base.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ext/ed25519/ref10/base.py b/src/ext/ed25519/ref10/base.py
index 8bfaab0568..3d477c5c39 100644
--- a/src/ext/ed25519/ref10/base.py
+++ b/src/ext/ed25519/ref10/base.py
@@ -56,15 +56,15 @@ def radix255(x):
Bi = B
for i in range(32):
- print "{"
+ print("{")
Bij = Bi
for j in range(8):
- print " {"
- print " {",radix255(Bij[1]+Bij[0]),"},"
- print " {",radix255(Bij[1]-Bij[0]),"},"
- print " {",radix255(2*d*Bij[0]*Bij[1]),"},"
+ print(" {")
+ print(" {",radix255(Bij[1]+Bij[0]),"},")
+ print(" {",radix255(Bij[1]-Bij[0]),"},")
+ print(" {",radix255(2*d*Bij[0]*Bij[1]),"},")
Bij = edwards(Bij,Bi)
- print " },"
- print "},"
+ print(" },")
+ print("},")
for k in range(8):
Bi = edwards(Bi,Bi)