From 6cb8fd6def4912e4aa76330649ba42a9ed2694fd Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 14 Feb 2011 16:32:07 +0000 Subject: 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 --- bitbake/lib/bb/process.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bitbake') 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(): 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): -- cgit v1.2.3