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/hobeventhandler.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/hobeventhandler.py')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py index 790e2ef819..1e1151e7ae 100644 --- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py +++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py | |||
@@ -119,7 +119,7 @@ class HobHandler(gobject.GObject): | |||
119 | self.generating = False | 119 | self.generating = False |
120 | 120 | ||
121 | def run_next_command(self, initcmd=None): | 121 | def run_next_command(self, initcmd=None): |
122 | if initcmd != None: | 122 | if initcmd: |
123 | self.initcmd = initcmd | 123 | self.initcmd = initcmd |
124 | 124 | ||
125 | if self.commands_async: | 125 | if self.commands_async: |
@@ -127,7 +127,7 @@ class HobHandler(gobject.GObject): | |||
127 | next_command = self.commands_async.pop(0) | 127 | next_command = self.commands_async.pop(0) |
128 | else: | 128 | else: |
129 | self.clear_busy() | 129 | self.clear_busy() |
130 | if self.initcmd != None: | 130 | if self.initcmd: |
131 | self.emit("command-succeeded", self.initcmd) | 131 | self.emit("command-succeeded", self.initcmd) |
132 | return | 132 | return |
133 | 133 | ||