summaryrefslogtreecommitdiff
path: root/buildstream/buildelement.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/buildelement.py
parent44b00de090348f94d27998e5378c1beef0db6296 (diff)
downloadbuildstream-3b17762a4cab23c238762ca32baa348788347473.tar.gz
Switch old-style string formattings to new '.format()'
Diffstat (limited to 'buildstream/buildelement.py')
-rw-r--r--buildstream/buildelement.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/buildelement.py b/buildstream/buildelement.py
index a794e9844..0870c83ad 100644
--- a/buildstream/buildelement.py
+++ b/buildstream/buildelement.py
@@ -184,9 +184,9 @@ class BuildElement(Element):
if not commands:
continue
- with self.timed_activity("Running %s" % command_name):
+ with self.timed_activity("Running {}".format(command_name)):
for cmd in commands:
- self.status("Running %s" % command_name, detail=cmd)
+ self.status("Running {}".format(command_name), detail=cmd)
# Note the -e switch to 'sh' means to exit with an error
# if any untested command fails.