summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-rw-r--r--bitbake/lib/bb/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index c0cc9c6ea2..665ffff45a 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -309,7 +309,7 @@ def better_compile(text, file, realfile, mode = "exec"):
309 except Exception as e: 309 except Exception as e:
310 # split the text into lines again 310 # split the text into lines again
311 body = text.split('\n') 311 body = text.split('\n')
312 bb.msg.error(bb.msg.domain.Util, "Error in compiling python function in: ", realfile) 312 bb.msg.error(bb.msg.domain.Util, "Error in compiling python function in: %s" % (realfile))
313 bb.msg.error(bb.msg.domain.Util, "The lines leading to this error were:") 313 bb.msg.error(bb.msg.domain.Util, "The lines leading to this error were:")
314 bb.msg.error(bb.msg.domain.Util, "\t%d:%s:'%s'" % (e.lineno, e.__class__.__name__, body[e.lineno-1])) 314 bb.msg.error(bb.msg.domain.Util, "\t%d:%s:'%s'" % (e.lineno, e.__class__.__name__, body[e.lineno-1]))
315 315
@@ -476,7 +476,7 @@ def filter_environment(good_vars):
476 del os.environ[key] 476 del os.environ[key]
477 477
478 if len(removed_vars): 478 if len(removed_vars):
479 bb.msg.debug(1, bb.msg.domain.Util, "Removed the following variables from the environment:", ",".join(removed_vars)) 479 bb.msg.debug(1, bb.msg.domain.Util, "Removed the following variables from the environment: %s" % (", ".join(removed_vars)))
480 480
481 return removed_vars 481 return removed_vars
482 482