oe.utils: add 'inherits' function
authorChris Larson <chris_larson@mentor.com>
Wed, 15 Dec 2010 18:03:19 +0000 (11:03 -0700)
committerChris Larson <chris_larson@mentor.com>
Wed, 15 Dec 2010 18:04:04 +0000 (11:04 -0700)
commitb8d240902f956b5522710c63609880f29464e30e
tree1bfa60a9f82a79eb7c9a23fedb8d452d1d9dbf99
parent1f24b55ee246de850dbc74cb41b5b546b26cde6c
oe.utils: add 'inherits' function

This is simply a more convenient form of bb.data.inherits_class, as it can
accept any number of classes, and will return True if it inherits any of them.
This is similar to how isinstance() behaves.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
lib/oe/utils.py