summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/runningbuild.py
diff options
context:
space:
mode:
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