summaryrefslogtreecommitdiffstats
path: root/clang/utils/clangdiag.py
diff options
context:
space:
mode:
authorSerge Guelton <sguelton@quarkslab.com>2018-12-18 08:36:33 +0000
committerSerge Guelton <sguelton@quarkslab.com>2018-12-18 08:36:33 +0000
commitc0ebe773cd0fb301474430205c69440f9915d5b0 (patch)
tree15c98a08b79b0dddbfeea4f95372771ba44d4dd1 /clang/utils/clangdiag.py
parent85833393d0e588f6d7613567db9c212236e3f0eb (diff)
downloadbcm5719-llvm-c0ebe773cd0fb301474430205c69440f9915d5b0.tar.gz
bcm5719-llvm-c0ebe773cd0fb301474430205c69440f9915d5b0.zip
Portable Python script across Python version
Using from __future__ import print_function it is possible to have a compatible behavior of `print(...)` across Python version. Differential Revision: https://reviews.llvm.org/D55213 llvm-svn: 349454
Diffstat (limited to 'clang/utils/clangdiag.py')
-rwxr-xr-xclang/utils/clangdiag.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/utils/clangdiag.py b/clang/utils/clangdiag.py
index 9a80e2696d5..d449194e284 100755
--- a/clang/utils/clangdiag.py
+++ b/clang/utils/clangdiag.py
@@ -9,6 +9,7 @@
# (lldb) command script import /path/to/clandiag.py
#----------------------------------------------------------------------
+from __future__ import print_function
import lldb
import argparse
import commands
@@ -189,4 +190,4 @@ def __lldb_init_module(debugger, dict):
# Add any commands contained in this module to LLDB
debugger.HandleCommand(
'command script add -f clangdiag.the_diag_command clangdiag')
- print 'The "clangdiag" command has been installed, type "help clangdiag" or "clangdiag --help" for detailed help.'
+ print('The "clangdiag" command has been installed, type "help clangdiag" or "clangdiag --help" for detailed help.')
OpenPOWER on IntegriCloud