Mercurial > piecrust2
view tests/pathutil.py @ 784:6d8fe8e93a91
internal: Add missing timer scope.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 17 Aug 2016 22:01:26 -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