From 491c87d1674b0447aa2e37d67bcba3aa55eec677 Mon Sep 17 00:00:00 2001 From: Shane Wang Date: Fri, 16 Mar 2012 15:17:37 +0800 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hoblistmodel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib/bb/ui/crumbs/hoblistmodel.py') 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): return None def set_selected_image(self, img): - if img == None: + if not img: return path = self.find_path_for_item(img) self.include_item(item_path=path, -- cgit v1.2.3-54-g00ecf