def setKillfileInfo(self, content=None):
        """
        :return: Boolean indicating success
        """
        if content is None:
            LOGGER.warning('Put empty killfile')
            with open(settings.KILLFILE, 'w') as f:
                pass
        elif content in [-1, -2, -3]:
            with open(settings.KILLFILE, 'w') as f:
                try:
                    f.write(str(content))
                except IOError as e:
                    LOGGER.warning("Error when storing value in killfile: file=%s value=%s" % (settings.KILLFILE, content))
                    return False
        else:
            LOGGER.warning("Trying to store invalid value in killfile (expected: -1, -2, -3 or None), received: %r" % content)
            return False
        return True
dataset/ETHPy150Open mikrosimage/OpenRenderManagement/src/octopus/worker/worker.py/Worker.setKillfileInfo/original