Skip to contentSkip to conversation

runqueue: drop unnecessary keys() in runqueue_process_waitpid

PATCH Applied Christopher Larson 2 participants 2 messages May 9, 2012 – May 11, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 runqueue: drop unnecessary keys() in runqueue_process_waitpid

From: Christopher Larson <[email protected]>

---
 lib/bb/runqueue.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/bb/runqueue.py +1 -1
index 8828e4a..462c685 100644
@@ -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:
Signature · 1 line
1.7.7