summaryrefslogtreecommitdiffstats
path: root/lib/bb/process.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-14 16:32:07 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-21 13:31:39 +0000
commit43188e8453aacb81688a7664cd7077fe60afbbe0 (patch)
tree19f066e5b9b7d311ba0090abeded8e4df633ab18 /lib/bb/process.py
parenta6aa2957273b635416846c455eb53f79990b29a5 (diff)
downloadopenembedded-core-contrib-43188e8453aacb81688a7664cd7077fe60afbbe0.tar.gz
process.py: Avoid deprecation warning
bitbake/lib/bb/process.py:15: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 (From Poky rev: 6cb8fd6def4912e4aa76330649ba42a9ed2694fd) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/process.py')
-rw-r--r--lib/bb/process.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bb/process.py b/lib/bb/process.py
index 808cd60f92..4150d80e06 100644
--- a/lib/bb/process.py
+++ b/lib/bb/process.py
@@ -10,9 +10,9 @@ def subprocess_setup():
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
class CmdError(RuntimeError):
- def __init__(self, command, message=None):
+ def __init__(self, command, msg=None):
self.command = command
- self.message = message
+ self.msg = msg
def __str__(self):
if not isinstance(self.command, basestring):
@@ -21,8 +21,8 @@ class CmdError(RuntimeError):
cmd = self.command
msg = "Execution of '%s' failed" % cmd
- if self.message:
- msg += ': %s' % self.message
+ if self.msg:
+ msg += ': %s' % self.msg
return msg
class NotFoundError(CmdError):