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. --- scripts/maint/practracker/util.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/maint/practracker/util.py') diff --git a/scripts/maint/practracker/util.py b/scripts/maint/practracker/util.py index db02a983f8..c52ca2fbbf 100644 --- a/scripts/maint/practracker/util.py +++ b/scripts/maint/practracker/util.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 + import os # We don't want to run metrics for unittests, automatically-generated C files, -- cgit v1.2.3-54-g00ecf