summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-17 15:52:06 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-17 15:52:06 +0000
commit0388f0758f84c7a8ec975d9be7e384cb65d9af4c (patch)
tree7ad38f8c7a48c7ee634a1d1a7e19c7ec7ec6119c
parenta7fa6dbb91e48158680e5f934289e28119862cdc (diff)
downloadopenembedded-core-0388f0758f84c7a8ec975d9be7e384cb65d9af4c.tar.gz
openembedded-core-0388f0758f84c7a8ec975d9be7e384cb65d9af4c.tar.bz2
openembedded-core-0388f0758f84c7a8ec975d9be7e384cb65d9af4c.zip
bitbake/build.py: Rename message field to avoid DeprecationWarning: BaseException.message warning
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/build.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index 0376cc93b8..74295dd454 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -51,14 +51,14 @@ class FuncFailed(Exception):
def __init__(self, name, logfile = None):
self.logfile = logfile
self.name = name
- self.message = "Function '%s' failed" % name
+ self.msg = "Function '%s' failed" % name
def __str__(self):
if self.logfile and os.path.exists(self.logfile):
msg = ("%s (see %s for further information)" %
- (self.message, self.logfile))
+ (self.msg, self.logfile))
else:
- msg = self.message
+ msg = self.msg
return msg
class TaskBase(event.Event):