summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/runningbuild.py
diff options
context:
space:
mode:
authorShane Wang <shane.wang@intel.com>2012-03-16 15:17:37 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-20 15:21:33 +0000
commit491c87d1674b0447aa2e37d67bcba3aa55eec677 (patch)
tree6ce2f3f00f6e0f3e8fb4ba1c6a3c86542226e7bf /bitbake/lib/bb/ui/crumbs/runningbuild.py
parent9ecdbc377c6ab6848afb0a378c5804918951f6b7 (diff)
downloadpoky-491c87d1674b0447aa2e37d67bcba3aa55eec677.tar.gz
Hob: fix '!= None' and '== None' in the code
This patch is to fix the following: if foo != None -----> if foo if foo == None -----> if not foo (From Poky rev: d771343b1726f166ed8d75543ba68bd2a20aee7b) (Bitbake rev: 23c140a4d00293d922cbd34b6b837493cac2e93a) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/runningbuild.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/runningbuild.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/runningbuild.py b/bitbake/lib/bb/ui/crumbs/runningbuild.py
index 7343a29caf..4c3fe2cedc 100644
--- a/bitbake/lib/bb/ui/crumbs/runningbuild.py
+++ b/bitbake/lib/bb/ui/crumbs/runningbuild.py
@@ -43,7 +43,7 @@ class RunningBuildModel (gtk.TreeStore):
43 43
44 def config_model_filter(self, model, it): 44 def config_model_filter(self, model, it):
45 msg = model.get(it, self.COL_MESSAGE)[0] 45 msg = model.get(it, self.COL_MESSAGE)[0]
46 if msg == None or type(msg) != str: 46 if not msg or type(msg) != str:
47 return False 47 return False
48 if msg.startswith("\nOE Build Configuration:\n"): 48 if msg.startswith("\nOE Build Configuration:\n"):
49 return True 49 return True
@@ -51,7 +51,7 @@ class RunningBuildModel (gtk.TreeStore):
51 51
52 def failure_model_filter(self, model, it): 52 def failure_model_filter(self, model, it):
53 color = model.get(it, self.COL_COLOR)[0] 53 color = model.get(it, self.COL_COLOR)[0]
54 if color == None: 54 if not color:
55 return False 55 return False
56 if color == HobColors.ERROR: 56 if color == HobColors.ERROR:
57 return True 57 return True