aboutsummaryrefslogtreecommitdiff
path: root/src/ext/ed25519/ref10/base2.py
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-12-12 15:59:47 +1000
committerteor <teor@torproject.org>2019-12-12 15:59:47 +1000
commit0bb879e821b7caafd9479708a528443fb481503c (patch)
treef6623c772ca20931a416f94f9992e101b68b0024 /src/ext/ed25519/ref10/base2.py
parent1619f14a0420b0a57d65b9adeab8e8a4ef222b3a (diff)
downloadtor-0bb879e821b7caafd9479708a528443fb481503c.tar.gz
tor-0bb879e821b7caafd9479708a528443fb481503c.zip
src/ext: Add __future__ imports for python 3 compatibility
Closes ticket 32732.
Diffstat (limited to 'src/ext/ed25519/ref10/base2.py')
-rw-r--r--src/ext/ed25519/ref10/base2.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ext/ed25519/ref10/base2.py b/src/ext/ed25519/ref10/base2.py
index 5e4e8739d0..5923e43a7b 100644
--- a/src/ext/ed25519/ref10/base2.py
+++ b/src/ext/ed25519/ref10/base2.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
+
b = 256
q = 2**255 - 19
l = 2**252 + 27742317777372353535851937790883648493