diff options
| author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-02-15 14:58:22 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-04 23:18:17 +0000 |
| commit | d8cf70bf0f7320487b7f72b953ef929f6a1ba11e (patch) | |
| tree | eb65c112fb14414b531e31f60c6fed64a35de73a /scripts/lib/wic/help.py | |
| parent | 27e172c3b63d002ef4376b29d0cb5e461ced3e58 (diff) | |
| download | poky-d8cf70bf0f7320487b7f72b953ef929f6a1ba11e.tar.gz | |
wic: reimplement PluginMgr.get_plugin_methods
Simplified the implementation of get_plugin_methods:
- get rid of looping over the dicrtionary, used access by key instead
- get rid of filling a dictionary that passed as a parameter
(From OE-Core rev: 875d4eede61b548d64f426c2ef077cc17e50cd45)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/help.py')
| -rw-r--r-- | scripts/lib/wic/help.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py index 4aba12de75..196896c170 100644 --- a/scripts/lib/wic/help.py +++ b/scripts/lib/wic/help.py | |||
| @@ -374,7 +374,7 @@ DESCRIPTION | |||
| 374 | This scheme is extensible - adding more hooks is a simple matter | 374 | This scheme is extensible - adding more hooks is a simple matter |
| 375 | of adding more plugin methods to SourcePlugin and derived classes. | 375 | of adding more plugin methods to SourcePlugin and derived classes. |
| 376 | The code that then needs to call the plugin methods uses | 376 | The code that then needs to call the plugin methods uses |
| 377 | plugin.get_source_plugin_methods() to find the method(s) needed by | 377 | plugin.get_plugin_methods() to find the method(s) needed by |
| 378 | the call; this is done by filling up a dict with keys containing | 378 | the call; this is done by filling up a dict with keys containing |
| 379 | the method names of interest - on success, these will be filled in | 379 | the method names of interest - on success, these will be filled in |
| 380 | with the actual methods. Please see the implementation for | 380 | with the actual methods. Please see the implementation for |
