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/practracker_tests.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/maint/practracker/practracker_tests.py') diff --git a/scripts/maint/practracker/practracker_tests.py b/scripts/maint/practracker/practracker_tests.py index 45719d6cb7..8d0418880c 100755 --- a/scripts/maint/practracker/practracker_tests.py +++ b/scripts/maint/practracker/practracker_tests.py @@ -2,6 +2,11 @@ """Some simple tests for practracker metrics""" +# 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 unittest try: -- cgit v1.2.3-54-g00ecf