diff options
author | Tim Newsome <tim@sifive.com> | 2017-11-01 12:36:36 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2017-11-01 12:36:36 -0700 |
commit | cc4fb603a4c6c1c1ba92262763b68bbb91092ed3 (patch) | |
tree | 57ac57328fd8c7940ab72fda31e577dba2f2a8eb /debug/targets.py | |
parent | 97f13c98e7306882f013ab2f6524e483ce1dcceb (diff) | |
download | riscv-tests-cc4fb603a4c6c1c1ba92262763b68bbb91092ed3.zip riscv-tests-cc4fb603a4c6c1c1ba92262763b68bbb91092ed3.tar.gz riscv-tests-cc4fb603a4c6c1c1ba92262763b68bbb91092ed3.tar.bz2 |
Make pylint 1.6.5 happy.
Diffstat (limited to 'debug/targets.py')
-rw-r--r-- | debug/targets.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debug/targets.py b/debug/targets.py index 06688d8..eb6862b 100644 --- a/debug/targets.py +++ b/debug/targets.py @@ -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 |