summaryrefslogtreecommitdiffstats
path: root/llvm/utils/llvm-build
diff options
context:
space:
mode:
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