Mercurial > piecrust2
view tests/pathutil.py @ 464:375301e024b5
Fixed 'bootom' to 'bottom'
author | Ron Au <ronCYA@users.noreply.github.com> |
---|---|
date | Thu, 25 Jun 2015 05:51:47 +1000 |
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