Index: cfe/trunk/bindings/python/clang/cindex.py =================================================================== --- cfe/trunk/bindings/python/clang/cindex.py +++ cfe/trunk/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: cfe/trunk/docs/conf.py =================================================================== --- cfe/trunk/docs/conf.py +++ cfe/trunk/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: cfe/trunk/tools/clang-format/clang-format-diff.py =================================================================== --- cfe/trunk/tools/clang-format/clang-format-diff.py +++ cfe/trunk/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: cfe/trunk/tools/clang-format/clang-format-sublime.py =================================================================== --- cfe/trunk/tools/clang-format/clang-format-sublime.py +++ cfe/trunk/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: cfe/trunk/tools/clang-format/clang-format.py =================================================================== --- cfe/trunk/tools/clang-format/clang-format.py +++ cfe/trunk/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: cfe/trunk/tools/clang-format/git-clang-format =================================================================== --- cfe/trunk/tools/clang-format/git-clang-format +++ cfe/trunk/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: cfe/trunk/tools/clang-rename/clang-rename.py =================================================================== --- cfe/trunk/tools/clang-rename/clang-rename.py +++ cfe/trunk/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: cfe/trunk/tools/scan-build-py/libscanbuild/arguments.py =================================================================== --- cfe/trunk/tools/scan-build-py/libscanbuild/arguments.py +++ cfe/trunk/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: cfe/trunk/utils/ABITest/ABITestGen.py =================================================================== --- cfe/trunk/utils/ABITest/ABITestGen.py +++ cfe/trunk/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: cfe/trunk/utils/ABITest/Enumeration.py =================================================================== --- cfe/trunk/utils/ABITest/Enumeration.py +++ cfe/trunk/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: cfe/trunk/utils/CIndex/completion_logger_server.py =================================================================== --- cfe/trunk/utils/CIndex/completion_logger_server.py +++ cfe/trunk/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: cfe/trunk/utils/TestUtils/deep-stack.py =================================================================== --- cfe/trunk/utils/TestUtils/deep-stack.py +++ cfe/trunk/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: cfe/trunk/utils/analyzer/SATestAdd.py =================================================================== --- cfe/trunk/utils/analyzer/SATestAdd.py +++ cfe/trunk/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: cfe/trunk/utils/analyzer/SATestUpdateDiffs.py =================================================================== --- cfe/trunk/utils/analyzer/SATestUpdateDiffs.py +++ cfe/trunk/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: cfe/trunk/utils/analyzer/SumTimerInfo.py =================================================================== --- cfe/trunk/utils/analyzer/SumTimerInfo.py +++ cfe/trunk/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: cfe/trunk/utils/check_cfc/check_cfc.py =================================================================== --- cfe/trunk/utils/check_cfc/check_cfc.py +++ cfe/trunk/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: cfe/trunk/utils/check_cfc/obj_diff.py =================================================================== --- cfe/trunk/utils/check_cfc/obj_diff.py +++ cfe/trunk/utils/check_cfc/obj_diff.py @@ -1,6 +1,6 @@ #!/usr/bin/env python2.7 -from __future__ import print_function +from __future__ import absolute_import, division, print_function import argparse import difflib Index: cfe/trunk/utils/check_cfc/setup.py =================================================================== --- cfe/trunk/utils/check_cfc/setup.py +++ cfe/trunk/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: cfe/trunk/utils/clangdiag.py =================================================================== --- cfe/trunk/utils/clangdiag.py +++ cfe/trunk/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: cfe/trunk/utils/hmaptool/hmaptool =================================================================== --- cfe/trunk/utils/hmaptool/hmaptool +++ cfe/trunk/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: cfe/trunk/utils/modfuzz.py =================================================================== --- cfe/trunk/utils/modfuzz.py +++ cfe/trunk/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: cfe/trunk/utils/perf-training/perf-helper.py =================================================================== --- cfe/trunk/utils/perf-training/perf-helper.py +++ cfe/trunk/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: cfe/trunk/utils/token-delta.py =================================================================== --- cfe/trunk/utils/token-delta.py +++ cfe/trunk/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