view tests/pathutil.py @ 389:b28d94f1f85a

Added tag 2.0.0a10 for changeset 3890353d3e5a
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 16 May 2015 00:05:43 -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