Make pylint 1.6.5 happy.
[riscv-tests.git] / debug / targets.py
index 06688d8239133bfb38bfd0df453d0643cff8b6f6..eb6862bd5670917803f8ee1ff3fff3648e1205fe 100644 (file)
@@ -173,7 +173,7 @@ def target(parsed):
     found = []
     for name in dir(module):
         definition = getattr(module, name)
-        if type(definition) == type and issubclass(definition, Target):
+        if isinstance(definition, type) and issubclass(definition, Target):
             found.append(definition)
     assert len(found) == 1, "%s does not define exactly one subclass of " \
             "targets.Target" % parsed.target