From 1619f14a0420b0a57d65b9adeab8e8a4ef222b3a Mon Sep 17 00:00:00 2001 From: teor Date: Thu, 12 Dec 2019 15:58:51 +1000 Subject: python: Add __future__ imports for python 3 compatibility Except for src/ext, which we may not want to modify. Closes ticket 32732. --- src/test/ed25519_exts_ref.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/test/ed25519_exts_ref.py') diff --git a/src/test/ed25519_exts_ref.py b/src/test/ed25519_exts_ref.py index 75562184b5..658f7cde12 100644 --- a/src/test/ed25519_exts_ref.py +++ b/src/test/ed25519_exts_ref.py @@ -8,6 +8,11 @@ Includes self-tester and test vector generator. """ +# Future imports for Python 2.7, mandatory in 3.0 +from __future__ import division +from __future__ import print_function +from __future__ import unicode_literals + import slow_ed25519 from slow_ed25519 import * -- cgit v1.2.3-54-g00ecf