Mercurial > piecrust2
view tests/pathutil.py @ 685:77cec2fa0e83
cm: Fix a packaging bug, update package metadata.
* Don't add empty strings as install requirements.
* Move PieCrust to 'beta' status, change URL, and other metadata tweaks.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 10 Mar 2016 07:08:15 -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