]> code.ossystems Code Review - openembedded-core.git/commit
wic: refactor pluginbase
authorEd Bartosh <ed.bartosh@linux.intel.com>
Wed, 4 May 2016 13:06:21 +0000 (16:06 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 14 May 2016 06:26:42 +0000 (07:26 +0100)
commite62fe5a41bdcdd72b9b257fecff7ccdc59c76d33
tree33cde5590311efb20085fc4b912e1cf806374165
parenteb87d591ef67f1953b2689430ef6c5a6a27a5b6e
wic: refactor pluginbase

Wic plugin machinery implemented using metaclasses.

Reimplemented plugin machinery using this advice from
https://wiki.python.org/moin/PortingToPy3k/BilingualQuickRef
Syntax for creating instances with different metaclasses is very
different between Python 2 and 3. Use the ability to call type instances
as a way to portably create such instances.

Now it should work under both Python 2 and Python 3.

[YOCTO #9412]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/pluginbase.py