Mercurial > piecrust2
view tests/pathutil.py @ 654:b1c4c9e0c65f
Fix 404 broken link
author | Bruno P. Kinoshita <kinow@users.noreply.github.com> |
---|---|
date | Wed, 30 Dec 2015 20:21:41 +1300 |
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