From: Juro Bystricky Date: Sat, 10 Dec 2016 17:21:45 +0000 (-0800) Subject: targetloader.py: drop test for ClassType X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~23376 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d62f18c39bc0ed3b0f5ac8465b393c15f2143ecf;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git targetloader.py: drop test for ClassType ClassType was removed from python3. The code testing for ClassType kept throwing AttributeError exceptions: module 'types' has no attribute 'ClassType' The exceptions prevented loading of any dynamically resolved target controllers. Signed-off-by: Juro Bystricky Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/controllers/testtargetloader.py b/meta/lib/oeqa/controllers/testtargetloader.py index a1b7b1d92bf..b51d04b2131 100644 --- a/meta/lib/oeqa/controllers/testtargetloader.py +++ b/meta/lib/oeqa/controllers/testtargetloader.py @@ -61,8 +61,6 @@ class TestTargetLoader: obj = getattr(module, target) if obj: from oeqa.targetcontrol import BaseTarget - if (not isinstance(obj, (type, types.ClassType))): - bb.warn("Target {0} found, but not of type Class".format(target)) if( not issubclass(obj, BaseTarget)): bb.warn("Target {0} found, but subclass is not BaseTarget".format(target)) except: