(self, contents, encoding=None, errors=None)
| 23 | pass |
| 24 | |
| 25 | def write_text(self, contents, encoding=None, errors=None): |
| 26 | if not encoding: |
| 27 | encoding = locale.getpreferredencoding(False) |
| 28 | assert errors is None |
| 29 | self.write_bytes(contents.encode(encoding)) |
| 30 | |
| 31 | @abstractmethod |
| 32 | def write_bytes(self, contents): |