def set_task_flags(self, task_flags):
        try:
            flags = int(task_flags)
        except (__HOLE__, TypeError):
            flags = self.words_to_flags(task_flags, "TASK_FLAG_")
        self.task.SetTaskFlags(flags)
dataset/ETHPy150Open tjguk/winsys/winsys/scheduled_tasks.py/Task.set_task_flags