summaryrefslogtreecommitdiff
path: root/scripts/lib
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 10:42:31 +0000
commit808451f154867caef73e00af04f56f051b7d5f6b (patch)
tree7cdc7f61be8e1d3ba2caaa88c44fa3668c939b32 /scripts/lib
parent9b8c69cdc8500ce065dbe607ba07ee95c1016659 (diff)
downloadopenembedded-core-808451f154867caef73e00af04f56f051b7d5f6b.tar.gz
openembedded-core-808451f154867caef73e00af04f56f051b7d5f6b.tar.bz2
openembedded-core-808451f154867caef73e00af04f56f051b7d5f6b.zip
wic: pluginbase: use python 3 metaclass syntax
Used more readable syntax to specify metaclass for the base plugin classes. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Diffstat (limited to 'scripts/lib')
-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):
return class_type
-class ImagerPlugin(PluginMeta("Plugin", (), {})):
+class ImagerPlugin(metaclass=PluginMeta):
wic_plugin_type = "imager"
-class SourcePlugin(PluginMeta("Plugin", (), {})):
+class SourcePlugin(metaclass=PluginMeta):
wic_plugin_type = "source"
"""
The methods that can be implemented by --source plugins.