(path: str, text: str)
| 269 | f.write(text or "") |
| 270 | |
| 271 | |
| 272 | def write_text_sync(path: str, text: str) -> None: |
| 273 | with open(path, "w", encoding="utf-8") as f: |
| 274 | f.write(text or "") |
| 275 | f.flush() |
| 276 | try: |
| 277 | os.fsync(f.fileno()) |
| 278 | except OSError: |
| 279 | pass |
| 280 | |
| 281 |
no test coverage detected