diff options
author | Shane Wang <shane.wang@intel.com> | 2012-03-16 15:17:37 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-20 15:21:33 +0000 |
commit | 491c87d1674b0447aa2e37d67bcba3aa55eec677 (patch) | |
tree | 6ce2f3f00f6e0f3e8fb4ba1c6a3c86542226e7bf /bitbake/lib/bb/ui/crumbs/hobpages.py | |
parent | 9ecdbc377c6ab6848afb0a378c5804918951f6b7 (diff) | |
download | poky-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/hobpages.py')
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/hobpages.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobpages.py b/bitbake/lib/bb/ui/crumbs/hobpages.py index bd4b292381..63ee3dd835 100755 --- a/bitbake/lib/bb/ui/crumbs/hobpages.py +++ b/bitbake/lib/bb/ui/crumbs/hobpages.py | |||
@@ -34,7 +34,7 @@ class HobPage (gtk.VBox): | |||
34 | self.builder = builder | 34 | self.builder = builder |
35 | self.builder_width, self.builder_height = self.builder.size_request() | 35 | self.builder_width, self.builder_height = self.builder.size_request() |
36 | 36 | ||
37 | if title == None: | 37 | if not title: |
38 | self.title = "HOB -- Image Creator" | 38 | self.title = "HOB -- Image Creator" |
39 | else: | 39 | else: |
40 | self.title = title | 40 | self.title = title |
@@ -62,7 +62,7 @@ class HobPage (gtk.VBox): | |||
62 | label.set_markup("<span font_desc=\'14\'>%s</span>" % self.title) | 62 | label.set_markup("<span font_desc=\'14\'>%s</span>" % self.title) |
63 | hbox.pack_start(label, expand=False, fill=False, padding=20) | 63 | hbox.pack_start(label, expand=False, fill=False, padding=20) |
64 | 64 | ||
65 | if widget != None: | 65 | if widget: |
66 | # add the widget in the event box | 66 | # add the widget in the event box |
67 | hbox.pack_end(widget, expand=False, fill=False, padding=padding) | 67 | hbox.pack_end(widget, expand=False, fill=False, padding=padding) |
68 | eventbox.add(hbox) | 68 | eventbox.add(hbox) |