aboutsummaryrefslogtreecommitdiff
path: root/scripts/llvm.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/llvm.py')
-rw-r--r--scripts/llvm.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/llvm.py b/scripts/llvm.py
index 762f9e7..706af11 100644
--- a/scripts/llvm.py
+++ b/scripts/llvm.py
@@ -12,7 +12,7 @@ from argparse import Action, ArgumentParser, RawTextHelpFormatter
def die(message, config_to_dump=None):
"""Print an error message and exit."""
- print message
+ print(message)
if config_to_dump is not None:
dump_config(config_to_dump)
@@ -35,13 +35,13 @@ llvm_worktree_root = os.environ["LLVM_SRC"]
def dump_config(config):
"""Dump the list of projects that are enabled in the given config."""
- print "Projects linked:"
+ print("Projects linked:")
enabled = config.get_enabled_subprojects()
if not enabled:
- print "none"
+ print("none")
else:
for subproj in sorted(enabled):
- print " + {}".format(subproj)
+ print(" + {}".format(subproj))
def projects(args):
@@ -74,7 +74,7 @@ def projects(args):
# If we decide we want shorthands for the subprojects, we can append to this
# list
-valid_subprojects = LLVMSubproject.get_all_subprojects().keys()
+valid_subprojects = list(LLVMSubproject.get_all_subprojects().keys())
options = ArgumentParser(formatter_class=RawTextHelpFormatter)
subcommands = options.add_subparsers()