Mercurial > piecrust2
view tests/pathutil.py @ 549:7453baeb0839
bake: Set the flags, don't combine.
We don't want to combine old flags with new ones, especially if something
went different between the last bake and the current one.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 04 Aug 2015 21:21:08 -0700 |
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