src/ext: Add __future__ imports for python 3 compatibility

Closes ticket 32732.
This commit is contained in:
teor 2019-12-12 15:59:47 +10:00
parent 1619f14a04
commit 0bb879e821
No known key found for this signature in database
GPG Key ID: 10FEAA0E7075672A
5 changed files with 25 additions and 0 deletions

View File

@ -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 b = 256
q = 2**255 - 19 q = 2**255 - 19
l = 2**252 + 27742317777372353535851937790883648493 l = 2**252 + 27742317777372353535851937790883648493

View File

@ -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 b = 256
q = 2**255 - 19 q = 2**255 - 19
l = 2**252 + 27742317777372353535851937790883648493 l = 2**252 + 27742317777372353535851937790883648493

View File

@ -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 q = 2**255 - 19
def expmod(b,e,m): def expmod(b,e,m):

View File

@ -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 q = 2**255 - 19
def expmod(b,e,m): def expmod(b,e,m):

View File

@ -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 q = 2**255 - 19
def expmod(b,e,m): def expmod(b,e,m):