summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb
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-14 16:32:07 +0000
commit6cb8fd6def4912e4aa76330649ba42a9ed2694fd (patch)
treed94d92bd78e95e5315994cfe7feef297f5663dd5 /bitbake/lib/bb
parentebe2a5d8d3e412c651ea347fa7d369912589acab (diff)
downloadopenembedded-core-6cb8fd6def4912e4aa76330649ba42a9ed2694fd.tar.gz
openembedded-core-6cb8fd6def4912e4aa76330649ba42a9ed2694fd.tar.bz2
openembedded-core-6cb8fd6def4912e4aa76330649ba42a9ed2694fd.tar.xz
openembedded-core-6cb8fd6def4912e4aa76330649ba42a9ed2694fd.zip
process.py: Avoid deprecation warning
bitbake/lib/bb/process.py:15: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/process.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/process.py b/bitbake/lib/bb/process.py
index 808cd60f9..4150d80e0 100644
--- a/bitbake/lib/bb/process.py
+++ b/bitbake/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):