python: Add __future__ imports for python 3 compatibility

Except for src/ext, which we may not want to modify.

Closes ticket 32732.
This commit is contained in:
teor
2019-12-12 15:58:51 +10:00
parent a38014e5c6
commit 1619f14a04
36 changed files with 168 additions and 7 deletions
+3
View File
@@ -7,7 +7,10 @@ problem is worse than a registered exception so that it only warns when things
get worse.
"""
# 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.path
import re