def setflags(self, **kw):
        for key in kw.keys():
            if self.validflags not in key:
                raise NameError, "invalid keyword argument: %s" % str(key)
        for key, value in kw.items():
            setattr(self, key, value)
dataset/ETHPy150Open francelabs/datafari/windows/python/Tools/webchecker/webchecker.py/Checker.setflags/swapped operands of `not in`