Write data to a fileobj. Data will be written directly to the fileobj without any prior seeking. :param fileobj: The fileobj to write content to :param data: The data to write
(self, fileobj, data)
| 774 | """Task for writing data to a non-seekable stream.""" |
| 775 | |
| 776 | def _main(self, fileobj, data): |
| 777 | """Write data to a fileobj. |
| 778 | |
| 779 | Data will be written directly to the fileobj without |
| 780 | any prior seeking. |
| 781 | |
| 782 | :param fileobj: The fileobj to write content to |
| 783 | :param data: The data to write |
| 784 | |
| 785 | """ |
| 786 | fileobj.write(data) |
| 787 | |
| 788 | |
| 789 | class IORenameFileTask(Task): |