aboutsummaryrefslogtreecommitdiff
path: root/clang/tools/clang-format/clang-format-diff.py
diff options
context:
space:
mode:
authorSerge Guelton <sguelton@quarkslab.com>2018-12-18 16:07:37 +0000
committerSerge Guelton <sguelton@quarkslab.com>2018-12-18 16:07:37 +0000
commitb748c0e696602cd8371c875a3eb337b8b221800d (patch)
treeda9858e64a96816d776181b2d865e5f46cbce5e2 /clang/tools/clang-format/clang-format-diff.py
parent3ee1ffc9fcb09dcfbcb6b84e19c9855eae8cafa2 (diff)
downloadllvm-b748c0e696602cd8371c875a3eb337b8b221800d.zip
llvm-b748c0e696602cd8371c875a3eb337b8b221800d.tar.gz
llvm-b748c0e696602cd8371c875a3eb337b8b221800d.tar.bz2
Portable Python script across Python version
Make scripts more future-proof by importing most __future__ stuff. Differential Revision: https://reviews.llvm.org/D55208 llvm-svn: 349504
Diffstat (limited to 'clang/tools/clang-format/clang-format-diff.py')
-rwxr-xr-xclang/tools/clang-format/clang-format-diff.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/clang-format/clang-format-diff.py b/clang/tools/clang-format/clang-format-diff.py
index 1721d8a..54347ce 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