summaryrefslogtreecommitdiffstats
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)
downloadpoky-6cb8fd6def4912e4aa76330649ba42a9ed2694fd.tar.gz
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 808cd60f92..4150d80e06 100644
--- a/bitbake/lib/bb/process.py
+++ b/bitbake/lib/bb/process.py
@@ -10,9 +10,9 @@ def subprocess_setup():
10 signal.signal(signal.SIGPIPE, signal.SIG_DFL) 10 signal.signal(signal.SIGPIPE, signal.SIG_DFL)
11 11
12class CmdError(RuntimeError): 12class CmdError(RuntimeError):
13 def __init__(self, command, message=None): 13 def __init__(self, command, msg=None):
14 self.command = command 14 self.command = command
15 self.message = message 15 self.msg = msg
16 16
17 def __str__(self): 17 def __str__(self):
18 if not isinstance(self.command, basestring): 18 if not isinstance(self.command, basestring):
@@ -21,8 +21,8 @@ class CmdError(RuntimeError):
21 cmd = self.command 21 cmd = self.command
22 22
23 msg = "Execution of '%s' failed" % cmd 23 msg = "Execution of '%s' failed" % cmd
24 if self.message: 24 if self.msg:
25 msg += ': %s' % self.message 25 msg += ': %s' % self.msg
26 return msg 26 return msg
27 27
28class NotFoundError(CmdError): 28class NotFoundError(CmdError):