From 67fac77e10269099796a6bd03ddaf1580949a4b8 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Tue, 8 Mar 2011 12:07:24 -0700 Subject: Fix more incorrect usages of 'is' (Bitbake rev: a26a2f548419af0e971ad21ec0a29e5245fe307f) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- bitbake/lib/bb/runqueue.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/runqueue.py') diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 3773ec0e1e..dcb2e0a86b 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -929,7 +929,7 @@ class RunQueue: if self.state is runQueuePrepare: self.rqexe = RunQueueExecuteDummy(self) - if self.rqdata.prepare() is 0: + if self.rqdata.prepare() == 0: self.state = runQueueComplete else: self.state = runQueueSceneInit @@ -1018,7 +1018,7 @@ class RunQueueExecute: collect the process exit codes and close the information pipe. """ result = os.waitpid(-1, os.WNOHANG) - if result[0] is 0 and result[1] is 0: + if result[0] == 0 and result[1] == 0: return None task = self.build_pids[result[0]] del self.build_pids[result[0]] -- cgit v1.2.3-54-g00ecf