aboutsummaryrefslogtreecommitdiff
path: root/src/ext/ed25519/ref10/d2.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ext/ed25519/ref10/d2.py')
-rw-r--r--src/ext/ed25519/ref10/d2.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ext/ed25519/ref10/d2.py b/src/ext/ed25519/ref10/d2.py
index 79841758be..f59a1bc62a 100644
--- a/src/ext/ed25519/ref10/d2.py
+++ b/src/ext/ed25519/ref10/d2.py
@@ -1,3 +1,8 @@
+# Future imports for Python 2.7, mandatory in 3.0
+from __future__ import division
+from __future__ import print_function
+from __future__ import unicode_literals
+
q = 2**255 - 19
def expmod(b,e,m):
@@ -25,4 +30,4 @@ def radix255(x):
return result
d = -121665 * inv(121666)
-print radix255(d*2)
+print(radix255(d*2))