diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-05-04 16:06:21 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-14 07:26:42 +0100 |
commit | e62fe5a41bdcdd72b9b257fecff7ccdc59c76d33 (patch) | |
tree | 33cde5590311efb20085fc4b912e1cf806374165 /scripts/lib/scriptpath.py | |
parent | eb87d591ef67f1953b2689430ef6c5a6a27a5b6e (diff) | |
download | openembedded-core-e62fe5a41bdcdd72b9b257fecff7ccdc59c76d33.tar.gz openembedded-core-e62fe5a41bdcdd72b9b257fecff7ccdc59c76d33.tar.bz2 openembedded-core-e62fe5a41bdcdd72b9b257fecff7ccdc59c76d33.zip |
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>
Diffstat (limited to 'scripts/lib/scriptpath.py')
0 files changed, 0 insertions, 0 deletions