diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-02-15 19:43:30 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-04 23:18:17 +0000 |
commit | 455ce228df18eb67ba08b7433eea334df6994391 (patch) | |
tree | 89f18f4fa76c12abf07a7baf96f7cb177a287e65 /scripts | |
parent | d088d22a385af47d4feb0049deac34fc09120d4b (diff) | |
download | poky-455ce228df18eb67ba08b7433eea334df6994391.tar.gz |
wic: pluginbase: use python 3 metaclass syntax
Used more readable syntax to specify metaclass for
the base plugin classes.
(From OE-Core rev: 808451f154867caef73e00af04f56f051b7d5f6b)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/wic/pluginbase.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/pluginbase.py b/scripts/lib/wic/pluginbase.py index aea9c02319..07ccf622f4 100644 --- a/scripts/lib/wic/pluginbase.py +++ b/scripts/lib/wic/pluginbase.py | |||
@@ -32,10 +32,10 @@ class PluginMeta(type): | |||
32 | 32 | ||
33 | return class_type | 33 | return class_type |
34 | 34 | ||
35 | class ImagerPlugin(PluginMeta("Plugin", (), {})): | 35 | class ImagerPlugin(metaclass=PluginMeta): |
36 | wic_plugin_type = "imager" | 36 | wic_plugin_type = "imager" |
37 | 37 | ||
38 | class SourcePlugin(PluginMeta("Plugin", (), {})): | 38 | class SourcePlugin(metaclass=PluginMeta): |
39 | wic_plugin_type = "source" | 39 | wic_plugin_type = "source" |
40 | """ | 40 | """ |
41 | The methods that can be implemented by --source plugins. | 41 | The methods that can be implemented by --source plugins. |