def __getattr__(self, func):
        if 0 > len(self.valid_funcs) and func not in self.valid_funcs:
            raise InvalidFunction('The function \'{0}\' does not exist in the '
                                  'StateFactory for \'{1}\''.format(
                                      func,
                                      self.module
                                  ))

        def make_state(id_, **kwargs):
            return State(
                id_,
                self.module,
                func,
                **kwargs
            )
        return make_state
dataset/ETHPy150Open saltstack/salt/salt/utils/pyobjects.py/StateFactory.__getattr__/swapped operands of `>`