diff options
Diffstat (limited to 'clang/tools')
-rwxr-xr-x | clang/tools/clang-format/clang-format-diff.py | 2 | ||||
-rw-r--r-- | clang/tools/clang-format/clang-format-sublime.py | 2 | ||||
-rw-r--r-- | clang/tools/clang-format/clang-format.py | 2 | ||||
-rwxr-xr-x | clang/tools/clang-format/git-clang-format | 2 | ||||
-rw-r--r-- | clang/tools/clang-rename/clang-rename.py | 2 | ||||
-rw-r--r-- | clang/tools/scan-build-py/libscanbuild/arguments.py | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/clang/tools/clang-format/clang-format-diff.py b/clang/tools/clang-format/clang-format-diff.py index 1721d8a4308..54347ce7593 100755 --- a/clang/tools/clang-format/clang-format-diff.py +++ b/clang/tools/clang-format/clang-format-diff.py @@ -21,7 +21,7 @@ Example usage for git/svn users: 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 diff --git a/clang/tools/clang-format/clang-format-sublime.py b/clang/tools/clang-format/clang-format-sublime.py index 16ff56e502c..5ea9a27825c 100644 --- a/clang/tools/clang-format/clang-format-sublime.py +++ b/clang/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 diff --git a/clang/tools/clang-format/clang-format.py b/clang/tools/clang-format/clang-format.py index 5fe592a9202..fe068bd41c1 100644 --- a/clang/tools/clang-format/clang-format.py +++ b/clang/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 diff --git a/clang/tools/clang-format/git-clang-format b/clang/tools/clang-format/git-clang-format index 0b2103962a3..96e3b4e8a2c 100755 --- a/clang/tools/clang-format/git-clang-format +++ b/clang/tools/clang-format/git-clang-format @@ -23,7 +23,7 @@ git clang-format -h 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 diff --git a/clang/tools/clang-rename/clang-rename.py b/clang/tools/clang-rename/clang-rename.py index 0cb8a26d27f..3381c5267f1 100644 --- a/clang/tools/clang-rename/clang-rename.py +++ b/clang/tools/clang-rename/clang-rename.py @@ -22,7 +22,7 @@ you would like to rename and press '<leader>cr'. You will be prompted for a new 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 diff --git a/clang/tools/scan-build-py/libscanbuild/arguments.py b/clang/tools/scan-build-py/libscanbuild/arguments.py index 73a7f24e679..eb8ea0d9fff 100644 --- a/clang/tools/scan-build-py/libscanbuild/arguments.py +++ b/clang/tools/scan-build-py/libscanbuild/arguments.py @@ -12,7 +12,7 @@ earlier.) 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 |