diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-11 21:37:53 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-11 21:38:32 +0000 |
| commit | 22d7989e8f3871553e57909b8e031b6b17dcb0e0 (patch) | |
| tree | 3759c20ee0a3e8cbd1dfc948f90135eb344251d5 | |
| parent | 9dd5a3b6715bf04a12ac4017c572e14450aec02b (diff) | |
| download | poky-22d7989e8f3871553e57909b8e031b6b17dcb0e0.tar.gz | |
bitbake: event: Fix another 'if d' test to test for None explictly
This should have been fixed in the previous patch, well spotted Chris!
(Bitbake rev: c3f6fee42bfa23f23f167cb29f0cfa05ac2fa197)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | bitbake/lib/bb/event.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py index 22171a9ca5..31e7c2a4d2 100644 --- a/bitbake/lib/bb/event.py +++ b/bitbake/lib/bb/event.py | |||
| @@ -118,7 +118,7 @@ def fire_class_handlers(event, d): | |||
| 118 | if _eventfilter: | 118 | if _eventfilter: |
| 119 | if not _eventfilter(name, handler, event, d): | 119 | if not _eventfilter(name, handler, event, d): |
| 120 | continue | 120 | continue |
| 121 | if d and not name in (d.getVar("__BBHANDLERS_MC") or set()): | 121 | if d is not None and not name in (d.getVar("__BBHANDLERS_MC") or set()): |
| 122 | continue | 122 | continue |
| 123 | execute_handler(name, handler, event, d) | 123 | execute_handler(name, handler, event, d) |
| 124 | 124 | ||
