Mercurial > piecrust2
view tests/pathutil.py @ 1154:aad9b5a0a809
prepare: Add micro-blogging template.
| author | Ludovic Chabant <ludovic@chabant.com> |
|---|---|
| date | Sat, 19 Jan 2019 17:41:56 -0800 |
| parents | a2d283d1033d |
| children |
line wrap: on
line source
import os def slashfix(path): if path is None: return None if isinstance(path, str): return path.replace('/', os.sep) fixed = [] for p in path: fixed.append(p.replace('/', os.sep)) return fixed
