(self)
| 72 | f.write("\n".join(self.lines).encode(self.encoding, "replace")) |
| 73 | |
| 74 | def tasks(self): |
| 75 | # get all tasks with their status |
| 76 | ret = [] |
| 77 | for l in self.lines: |
| 78 | mark, task = self._parse_task_status(l) |
| 79 | if mark is not None: |
| 80 | ret.append((mark, task)) |
| 81 | return ret |
| 82 | |
| 83 | def done_editing(self): |
| 84 | for m, t in self.tasks(): |
no test coverage detected