Patchwork [bitbake-devel] runqueue: drop unnecessary keys() in runqueue_process_waitpid

login
register
mail settings
Submitter Christopher Larson
Date May 9, 2012, 11:35 p.m.
Message ID <1336606548-2482-1-git-send-email-kergoth@gmail.com>
Download mbox | patch
Permalink /patch/27415/
State Accepted
Commit d03dc07dea2f4e594fdbe4abe618670fe628a7c9
Headers show

Comments

Christopher Larson - May 9, 2012, 11:35 p.m.
From: Christopher Larson <chris_larson@mentor.com>

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
 lib/bb/runqueue.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Richard Purdie - May 11, 2012, 9:06 a.m.
On Wed, 2012-05-09 at 18:35 -0500, Christopher Larson wrote:
> From: Christopher Larson <chris_larson@mentor.com>
> 
> Signed-off-by: Christopher Larson <chris_larson@mentor.com>
> ---
>  lib/bb/runqueue.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Merged to master along with the previous patch, thanks.

Richard

Patch

diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 8828e4a..462c685 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -1064,7 +1064,7 @@  class RunQueueExecute:
         del self.build_pipes[pid]
 
         # self.build_stamps[pid] may not exist when use shared work directory.
-        if pid in self.build_stamps.keys():
+        if pid in self.build_stamps:
             del self.build_stamps[pid]
 
         if status != 0: