projects
/
kconfig-hardened-check.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92a6544
)
Fix the pylint warning about isinstance
author
Alexander Popov
<alex.popov@linux.com>
Wed, 8 Jun 2022 22:47:07 +0000
(
01:47
+0300)
committer
Alexander Popov
<alex.popov@linux.com>
Wed, 8 Jun 2022 22:47:07 +0000
(
01:47
+0300)
kconfig_hardened_check/__init__.py
patch
|
blob
|
history
diff --git
a/kconfig_hardened_check/__init__.py
b/kconfig_hardened_check/__init__.py
index 0c58c0ca9e5b8443429b967fd37ec9ff93e51ce0..59fe71dc5e0ba0a7db2c0609cbf20383b1a5d919 100644
(file)
--- a/
kconfig_hardened_check/__init__.py
+++ b/
kconfig_hardened_check/__init__.py
@@
-189,7
+189,7
@@
class ComplexOptCheck:
'empty {} check'.format(self.__class__.__name__)
assert(len(self.opts) != 1), \
'useless {} check: {}'.format(self.__class__.__name__, opts)
- assert(isinstance(opts[0],
KconfigCheck) or isinstance(opts[0], CmdlineCheck
)), \
+ assert(isinstance(opts[0],
(KconfigCheck, CmdlineCheck)
)), \
'invalid {} check: {}'.format(self.__class__.__name__, opts)
self.result = None