summaryrefslogtreecommitdiffstats
path: root/llvm/utils/llvm-build
diff options
context:
space:
mode:
authorSerge Guelton <sguelton@quarkslab.com>2019-01-03 14:11:33 +0000
committerSerge Guelton <sguelton@quarkslab.com>2019-01-03 14:11:33 +0000
commit4a27478a5b8bd9f13fef65e66b291a352c532371 (patch)
treea086542fe11fba6d8779ca2fa96036d80af04312 /llvm/utils/llvm-build
parent41f98c834bc62a605ec51032482369cfa128d711 (diff)
downloadbcm5719-llvm-4a27478a5b8bd9f13fef65e66b291a352c532371.tar.gz
bcm5719-llvm-4a27478a5b8bd9f13fef65e66b291a352c532371.zip
Python compat - print statement
Make sure all print statements are compatible with Python 2 and Python3 using the `from __future__ import print_function` statement. Differential Revision: https://reviews.llvm.org/D56249 llvm-svn: 350307
Diffstat (limited to 'llvm/utils/llvm-build')
-rw-r--r--llvm/utils/llvm-build/llvmbuild/componentinfo.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/llvm-build/llvmbuild/componentinfo.py b/llvm/utils/llvm-build/llvmbuild/componentinfo.py
index b384acd190f..0e9d08915fb 100644
--- a/llvm/utils/llvm-build/llvmbuild/componentinfo.py
+++ b/llvm/utils/llvm-build/llvmbuild/componentinfo.py
@@ -2,7 +2,7 @@
Descriptor objects for entities that are part of the LLVM project.
"""
-from __future__ import absolute_import
+from __future__ import absolute_import, print_function
try:
import configparser
except:
@@ -461,8 +461,8 @@ def _read_components_from_parser(parser, path, subpath):
info = type_class.parse(subpath,
IniFormatParser(parser.items(section)))
except TypeError:
- print >>sys.stderr, "error: invalid component %r in %r: %s" % (
- section, path, "unable to instantiate: %r" % type_name)
+ print("error: invalid component %r in %r: %s" % (
+ section, path, "unable to instantiate: %r" % type_name), file=sys.stderr)
import traceback
traceback.print_exc()
raise SystemExit(1)
OpenPOWER on IntegriCloud