aboutsummaryrefslogtreecommitdiff
path: root/clang/utils/check_cfc
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/utils/check_cfc
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/utils/check_cfc')
-rwxr-xr-xclang/utils/check_cfc/check_cfc.py2
-rwxr-xr-xclang/utils/check_cfc/obj_diff.py2
-rw-r--r--clang/utils/check_cfc/setup.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/clang/utils/check_cfc/check_cfc.py b/clang/utils/check_cfc/check_cfc.py
index aea9bdd..4ad88c8 100755
--- a/clang/utils/check_cfc/check_cfc.py
+++ b/clang/utils/check_cfc/check_cfc.py
@@ -47,7 +47,7 @@ To add a new check:
subclass.
"""
-from __future__ import print_function
+from __future__ import absolute_import, division, print_function
import imp
import os
diff --git a/clang/utils/check_cfc/obj_diff.py b/clang/utils/check_cfc/obj_diff.py
index 61b9118..1302834 100755
--- a/clang/utils/check_cfc/obj_diff.py
+++ b/clang/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
diff --git a/clang/utils/check_cfc/setup.py b/clang/utils/check_cfc/setup.py
index 6005f6f..64f07d5 100644
--- a/clang/utils/check_cfc/setup.py
+++ b/clang/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