summaryrefslogtreecommitdiff
path: root/buildstream/_frontend/main.py
diff options
context:
space:
mode:
authorGökçen Nurlu <gnurlu1@bloomberg.net>2017-11-13 10:22:12 +0000
committerGökçen Nurlu <gnurlu1@bloomberg.net>2017-11-17 11:46:34 +0000
commit3b17762a4cab23c238762ca32baa348788347473 (patch)
tree3f709fac5b116154c8535abd44f878ba96a8eab0 /buildstream/_frontend/main.py
parent44b00de090348f94d27998e5378c1beef0db6296 (diff)
downloadbuildstream-3b17762a4cab23c238762ca32baa348788347473.tar.gz
Switch old-style string formattings to new '.format()'
Diffstat (limited to 'buildstream/_frontend/main.py')
-rw-r--r--buildstream/_frontend/main.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/buildstream/_frontend/main.py b/buildstream/_frontend/main.py
index 4e00a2be1..46cc7a9ca 100644
--- a/buildstream/_frontend/main.py
+++ b/buildstream/_frontend/main.py
@@ -497,7 +497,7 @@ def shell(app, element, sysroot, build, command):
sys.exit(exitcode)
except BstError as e:
click.echo("")
- click.echo("Errors shelling into this pipeline: %s" % str(e))
+ click.echo("Errors shelling into this pipeline: {}".format(str(e)))
sys.exit(-1)
@@ -773,7 +773,7 @@ class App():
self.context = Context(self.main_options['option'])
self.context.load(config)
except BstError as e:
- click.echo("Error loading user configuration: %s" % str(e))
+ click.echo("Error loading user configuration: {}".format(str(e)))
sys.exit(-1)
# Override things in the context from our command line options,
@@ -831,7 +831,7 @@ class App():
try:
self.project = Project(directory, self.context)
except BstError as e:
- click.echo("Error loading project: %s" % str(e))
+ click.echo("Error loading project: {}".format(str(e)))
sys.exit(-1)
try:
@@ -844,7 +844,7 @@ class App():
remote_ticker=self.remote_ticker,
cache_ticker=self.cache_ticker)
except BstError as e:
- click.echo("Error loading pipeline: %s" % str(e))
+ click.echo("Error loading pipeline: {}".format(str(e)))
sys.exit(-1)
# Create our status printer, only available in interactive