view tests/pathutil.py @ 1174:3acfaf2e27f1

Added tag 3.3.0 for changeset 5f9f411a109e
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 04 Oct 2019 11:48:18 -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