aboutsummaryrefslogtreecommitdiff
path: root/src/ext/ed25519/ref10/sqrtm1.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ext/ed25519/ref10/sqrtm1.py')
-rw-r--r--src/ext/ed25519/ref10/sqrtm1.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ext/ed25519/ref10/sqrtm1.py b/src/ext/ed25519/ref10/sqrtm1.py
index 9a47fbc12a..df9f26ee1d 100644
--- a/src/ext/ed25519/ref10/sqrtm1.py
+++ b/src/ext/ed25519/ref10/sqrtm1.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
I = expmod(2,(q-1)/4,q)
-print radix255(I)
+print(radix255(I))