Commit 58cc1a05 by Alexander Popov

Fix the pylint warning about isinstance

parent 92a65445
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment