From 808451f154867caef73e00af04f56f051b7d5f6b Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Wed, 15 Feb 2017 19:43:30 +0200 Subject: wic: pluginbase: use python 3 metaclass syntax Used more readable syntax to specify metaclass for the base plugin classes. Signed-off-by: Ed Bartosh --- scripts/lib/wic/pluginbase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/lib') 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. -- cgit v1.2.3