(file='data.yaml', data={})
| 596 | |
| 597 | |
| 598 | def yaml_save(file='data.yaml', data={}): |
| 599 | # Single-line safe yaml saving |
| 600 | with open(file, 'w') as f: |
| 601 | yaml.safe_dump({k: str(v) if isinstance(v, Path) else v for k, v in data.items()}, f, sort_keys=False) |
| 602 | |
| 603 | |
| 604 | def unzip_file(file, path=None, exclude=('.DS_Store', '__MACOSX')): |
no outgoing calls
no test coverage detected