aboutsummaryrefslogtreecommitdiff
path: root/src/ext/ed25519/ref10/d.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ext/ed25519/ref10/d.py')
-rw-r--r--src/ext/ed25519/ref10/d.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ext/ed25519/ref10/d.py b/src/ext/ed25519/ref10/d.py
index 8995bb86a3..5b875de666 100644
--- a/src/ext/ed25519/ref10/d.py
+++ b/src/ext/ed25519/ref10/d.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)
+print(radix255(d))