diff options
author | Serge Guelton <sguelton@quarkslab.com> | 2018-12-18 16:07:37 +0000 |
---|---|---|
committer | Serge Guelton <sguelton@quarkslab.com> | 2018-12-18 16:07:37 +0000 |
commit | b748c0e696602cd8371c875a3eb337b8b221800d (patch) | |
tree | da9858e64a96816d776181b2d865e5f46cbce5e2 /clang/utils/check_cfc | |
parent | 3ee1ffc9fcb09dcfbcb6b84e19c9855eae8cafa2 (diff) | |
download | llvm-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-x | clang/utils/check_cfc/check_cfc.py | 2 | ||||
-rwxr-xr-x | clang/utils/check_cfc/obj_diff.py | 2 | ||||
-rw-r--r-- | clang/utils/check_cfc/setup.py | 2 |
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 |