Index: bindings/python/clang/cindex.py =================================================================== --- bindings/python/clang/cindex.py +++ bindings/python/clang/cindex.py @@ -44,7 +44,7 @@ Most object information is exposed using properties, when the underlying API call is efficient. """ -from __future__ import print_function +from __future__ import absolute_import, division, print_function # TODO # ==== Index: docs/conf.py =================================================================== --- docs/conf.py +++ docs/conf.py @@ -11,7 +11,7 @@ # All configuration values have a default; values that are commented out # serve to show the default. -from __future__ import print_function +from __future__ import absolute_import, division, print_function import sys, os from datetime import date Index: tools/clang-format/clang-format-diff.py =================================================================== --- tools/clang-format/clang-format-diff.py +++ tools/clang-format/clang-format-diff.py @@ -21,7 +21,7 @@ svn diff --diff-cmd=diff -x-U0 | clang-format-diff.py -i """ -from __future__ import print_function +from __future__ import absolute_import, division, print_function import argparse import difflib Index: tools/clang-format/clang-format-sublime.py =================================================================== --- tools/clang-format/clang-format-sublime.py +++ tools/clang-format/clang-format-sublime.py @@ -12,7 +12,7 @@ # It operates on the current, potentially unsaved buffer and does not create # or save any files. To revert a formatting, just undo. -from __future__ import print_function +from __future__ import absolute_import, division, print_function import sublime import sublime_plugin import subprocess Index: tools/clang-format/clang-format.py =================================================================== --- tools/clang-format/clang-format.py +++ tools/clang-format/clang-format.py @@ -25,7 +25,7 @@ # # It operates on the current, potentially unsaved buffer and does not create # or save any files. To revert a formatting, just undo. -from __future__ import print_function +from __future__ import absolute_import, division, print_function import difflib import json Index: tools/clang-format/git-clang-format =================================================================== --- tools/clang-format/git-clang-format +++ tools/clang-format/git-clang-format @@ -23,7 +23,7 @@ Requires Python 2.7 or Python 3 """ -from __future__ import print_function +from __future__ import absolute_import, division, print_function import argparse import collections import contextlib Index: tools/clang-rename/clang-rename.py =================================================================== --- tools/clang-rename/clang-rename.py +++ tools/clang-rename/clang-rename.py @@ -22,7 +22,7 @@ name if the cursor points to a valid symbol. ''' -from __future__ import print_function +from __future__ import absolute_import, division, print_function import vim import subprocess import sys Index: tools/scan-build-py/libscanbuild/arguments.py =================================================================== --- tools/scan-build-py/libscanbuild/arguments.py +++ tools/scan-build-py/libscanbuild/arguments.py @@ -12,7 +12,7 @@ It also implements basic validation methods, related to the command. Validations are mostly calling specific help methods, or mangling values. """ -from __future__ import print_function +from __future__ import absolute_import, division, print_function import os import sys Index: utils/ABITest/ABITestGen.py =================================================================== --- utils/ABITest/ABITestGen.py +++ utils/ABITest/ABITestGen.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -from __future__ import print_function +from __future__ import absolute_import, division, print_function from pprint import pprint import random, atexit, time from random import randrange Index: utils/ABITest/Enumeration.py =================================================================== --- utils/ABITest/Enumeration.py +++ utils/ABITest/Enumeration.py @@ -1,6 +1,6 @@ """Utilities for enumeration of finite and countably infinite sets. """ -from __future__ import print_function +from __future__ import absolute_import, division, print_function ### # Countable iteration Index: utils/CIndex/completion_logger_server.py =================================================================== --- utils/CIndex/completion_logger_server.py +++ utils/CIndex/completion_logger_server.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -from __future__ import print_function +from __future__ import absolute_import, division, print_function import sys from socket import * from time import strftime Index: utils/TestUtils/deep-stack.py =================================================================== --- utils/TestUtils/deep-stack.py +++ utils/TestUtils/deep-stack.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -from __future__ import print_function +from __future__ import absolute_import, division, print_function def pcall(f, N): if N == 0: print(' f(0)', file=f) Index: utils/analyzer/SATestAdd.py =================================================================== --- utils/analyzer/SATestAdd.py +++ utils/analyzer/SATestAdd.py @@ -42,7 +42,7 @@ diff -ur CachedSource PatchedSource \ > changes_for_analyzer.patch """ -from __future__ import print_function +from __future__ import absolute_import, division, print_function import SATestBuild import os Index: utils/analyzer/SATestUpdateDiffs.py =================================================================== --- utils/analyzer/SATestUpdateDiffs.py +++ utils/analyzer/SATestUpdateDiffs.py @@ -3,7 +3,7 @@ """ Update reference results for static analyzer. """ -from __future__ import print_function +from __future__ import absolute_import, division, print_function import SATestBuild Index: utils/analyzer/SumTimerInfo.py =================================================================== --- utils/analyzer/SumTimerInfo.py +++ utils/analyzer/SumTimerInfo.py @@ -6,7 +6,7 @@ Statistics are enabled by passing '-internal-stats' option to scan-build (or '-analyzer-stats' to the analyzer). """ -from __future__ import print_function +from __future__ import absolute_import, division, print_function import sys Index: utils/check_cfc/check_cfc.py =================================================================== --- utils/check_cfc/check_cfc.py +++ utils/check_cfc/check_cfc.py @@ -47,7 +47,7 @@ subclass. """ -from __future__ import print_function +from __future__ import absolute_import, division, print_function import imp import os Index: utils/check_cfc/obj_diff.py =================================================================== --- utils/check_cfc/obj_diff.py +++ utils/check_cfc/obj_diff.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -from __future__ import print_function +from __future__ import absolute_import, division, print_function import argparse import difflib Index: utils/check_cfc/setup.py =================================================================== --- utils/check_cfc/setup.py +++ utils/check_cfc/setup.py @@ -1,7 +1,7 @@ """For use on Windows. Run with: python.exe setup.py py2exe """ -from __future__ import print_function +from __future__ import absolute_import, division, print_function from distutils.core import setup try: import py2exe Index: utils/clangdiag.py =================================================================== --- utils/clangdiag.py +++ utils/clangdiag.py @@ -9,7 +9,7 @@ # (lldb) command script import /path/to/clandiag.py #---------------------------------------------------------------------- -from __future__ import print_function +from __future__ import absolute_import, division, print_function import lldb import argparse import shlex Index: utils/hmaptool/hmaptool =================================================================== --- utils/hmaptool/hmaptool +++ utils/hmaptool/hmaptool @@ -1,5 +1,5 @@ #!/usr/bin/env python -from __future__ import print_function +from __future__ import absolute_import, division, print_function import json import optparse Index: utils/modfuzz.py =================================================================== --- utils/modfuzz.py +++ utils/modfuzz.py @@ -4,7 +4,7 @@ # 1) Update the 'decls' list below with your fuzzing configuration. # 2) Run with the clang binary as the command-line argument. -from __future__ import print_function +from __future__ import absolute_import, division, print_function import random import subprocess import sys Index: utils/perf-training/perf-helper.py =================================================================== --- utils/perf-training/perf-helper.py +++ utils/perf-training/perf-helper.py @@ -7,7 +7,7 @@ # #===------------------------------------------------------------------------===# -from __future__ import print_function +from __future__ import absolute_import, division, print_function import sys import os Index: utils/token-delta.py =================================================================== --- utils/token-delta.py +++ utils/token-delta.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -from __future__ import print_function +from __future__ import absolute_import, division, print_function import os import re import subprocess