summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-02-15 19:43:30 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-04 23:18:17 +0000
commit455ce228df18eb67ba08b7433eea334df6994391 (patch)
tree89f18f4fa76c12abf07a7baf96f7cb177a287e65 /scripts
parentd088d22a385af47d4feb0049deac34fc09120d4b (diff)
downloadpoky-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.py4
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
35class ImagerPlugin(PluginMeta("Plugin", (), {})): 35class ImagerPlugin(metaclass=PluginMeta):
36 wic_plugin_type = "imager" 36 wic_plugin_type = "imager"
37 37
38class SourcePlugin(PluginMeta("Plugin", (), {})): 38class 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.