summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hoblistmodel.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/hoblistmodel.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/hoblistmodel.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hoblistmodel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
index caf31bc325..69e13cf9fe 100644
--- a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
+++ b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
@@ -713,7 +713,7 @@ class RecipeListModel(gtk.ListStore):
713 return None 713 return None
714 714
715 def set_selected_image(self, img): 715 def set_selected_image(self, img):
716 if img == None: 716 if not img:
717 return 717 return
718 path = self.find_path_for_item(img) 718 path = self.find_path_for_item(img)
719 self.include_item(item_path=path, 719 self.include_item(item_path=path,